Ask Your Question

amod's profile - activity

2016-01-08 16:34:24 -0500 received badge  Necromancer (source)
2014-09-28 12:04:47 -0500 received badge  Famous Question (source)
2014-09-28 12:04:47 -0500 received badge  Notable Question (source)
2014-03-08 08:19:59 -0500 received badge  Popular Question (source)
2014-03-08 08:16:50 -0500 received badge  Famous Question (source)
2014-01-31 22:27:05 -0500 asked a question Dialog for requesting to replace a file (Zenity)

Hi all, Just for a fun and to know zenity better I made a simple programme which changes a file content to uppercase. The code as follows

#!/bin/bash
zenity --info --text "This programme will convert\n a selected file to uppercase"

 X=$(zenity --file-selection --title "Please Select a file")

if [[ $? -eq 1 ]] ; then
    zenity --question --text "You did not select any file \n Do you wish to continue."
case $? in
0)
   X=$(zenity --file-selection --title "Please Select a file");;
1)
    exit;;
esac    
fi
Y=$(zenity --file-selection --save --title "Please give a file name")
if [[ $? -eq 1 ]] ; then
   zenity --question --text "Do you want to exit this programme?"
case $? in
0)
exit;;
1)
Y=$(zenity --file-selection --save --title "Please give a file name");;
esac
fi

dd if=$X of=$Y conv=ucase
zenity --info --text "Your file has been converted to uppercase\n It has been saved in $Y"

Here the code works fine. I know there might be bugs in it but when i select a existing file to save it does not ask me weather to replace the existing file or not. What function should i use for this

Regards

Amod

2014-01-31 10:55:13 -0500 received badge  Notable Question (source)
2014-01-29 20:29:52 -0500 received badge  Popular Question (source)
2014-01-29 12:49:35 -0500 received badge  Notable Question (source)
2014-01-29 00:45:08 -0500 answered a question Installing flash

Tutorial here

Currently for fedora 19 but it worked for me on fedora 20 also

2014-01-29 00:38:15 -0500 asked a question How to make a gui programme?

Hi all, I know i cant get a detailed answer for this question. but still...

I got impressed by fedora since it was fedora 11. i went forward to translated a few fedora websites (nearly 40 %) into marathi language i.e my mother tongue. slowly i found that command prompt to be more stronger than gui, but new people find it little difficult to understand it. typically when i made a windows bootable usb by the command "dd", my friends were surprised but said if there was a gui for that. i think (i might be wrong) there is no gui for that.

So how do you people make a gui programme of these commands. I have newer programmed anything in my life. but if people here guide me i wish to create atleast one gui programme for myself first and then see if i am any help to fedora.

This indeed will help me also.

Regards

Amod

2013-12-25 07:25:11 -0500 received badge  Popular Question (source)
2013-12-25 07:25:11 -0500 received badge  Notable Question (source)
2013-12-23 01:08:02 -0500 received badge  Popular Question (source)
2013-12-22 22:04:16 -0500 received badge  Scholar (source)
2013-12-22 11:33:00 -0500 received badge  Popular Question (source)
2013-12-22 11:33:00 -0500 received badge  Notable Question (source)
2013-12-22 11:33:00 -0500 received badge  Famous Question (source)
2013-12-22 11:30:38 -0500 asked a question dd for windows bootable pendrive

Hi everybody, It was a surprise to me that "dd if= of= bs=" command can be used to make a bootable pendrive of linux os. i tried this time to make fedora 20 full dvd botable to pendrive. I was very much happy and amazed. Can this make a windows dvd to bootable pendrive.

Regards

Amod

2013-08-31 23:52:19 -0500 received badge  Famous Question (source)
2013-08-31 23:52:19 -0500 received badge  Popular Question (source)
2013-08-31 23:52:19 -0500 received badge  Notable Question (source)
2013-08-27 05:23:40 -0500 received badge  Taxonomist
2013-08-21 02:36:52 -0500 received badge  Popular Question (source)
2013-08-21 02:36:52 -0500 received badge  Famous Question (source)
2013-08-21 02:36:52 -0500 received badge  Notable Question (source)
2013-08-10 09:26:37 -0500 received badge  Notable Question (source)
2013-08-10 09:26:37 -0500 received badge  Famous Question (source)
2013-08-10 09:26:37 -0500 received badge  Popular Question (source)
2013-07-11 08:45:49 -0500 asked a question cryptsetup ununderstood

Hi all,

I made a partition as /dev/sda3 with fdisk -cu.

Later i did partx -av and rebooted.

I did a cryptsetup luksFormat /dev/sda3 further luksOpen myfile.

Till this moment everything was fine.

Then i did a luksClose and deleted sda3 with fdisk -cu following partx -av reboot

the /dev/sda3 was gone.

I tried to again make /dev/sda3 with the above procedure

but here i did not do a cryptsetup. This time the graphical disk utility showed /dev/sda3 as encrypted allready. i am confused. to make sure myself escaping luksFormat i did luksOpen and damm it asked me the password of the /dev/sda3 which i had made it previously!!!!

In short if i have deleted the /dev/sda3 how could it ask me the password of the previous one.

Are there any other entries i have to remove?? Hope so i have explained it in good manner.

Regards

Amod(India)

2013-07-07 23:25:28 -0500 answered a question ar8162 wired drivers

hi all, Yes i missed the kernel-heardes and devel i installed them along with the gcc and did the same thing again. This time it was a success. but the issue is whenever the kernel updates. i have to do all the procedure again to get the wired connection detected. Any solution.

Regards

Amod

2013-06-22 14:07:29 -0500 asked a question ar8162 wired drivers

Hi all,

I have a brand new lenovo g580 laptop. Wireless is flawless but wired not getting detected.

uname -r

3.9.6-200.fc18.x86_64

lspci result

01:00.0 Ethernet controller: Atheros Communications Inc. AR8162 Fast Ethernet (rev 10)

i downloaded the following tar ball

compat-drivers-2013-03-04-u.tar.bz2

extracted and navigated to the folder. Ran the script sudo ./scripts/driver-select alx and result the result are as follows.

Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
Backup exists: drivers/net/ethernet/atheros/Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk

further i made make install and the result was

Updating Fedora's initramfs for 3.9.6-200.fc18.x86_64 under /boot/ ...

make -C /lib/modules/3.9.6-200.fc18.x86_64/build M=/home/amod/Downloads/compat-drivers-2013-03-04-u modules
make: *** /lib/modules/3.9.6-200.fc18.x86_64/build: No such file or directory.  Stop.
make: *** [modules] Error 2

Regards

Amod (India) What exactly is wrong and what has to be done so that my wired connection is deceted

2013-06-13 01:28:34 -0500 asked a question what is shred exactly and is it ethical

Hi all,

I am on a learning curve in rhcsa on which we had a tutorial on how to use man and info pages. After this tutorial we in the class tried to search man pages on some commands.

One command we found interesting while tabbling is the shred command. We peeked through the man pages of shred and where surprised with the information given which is below copied and pasted from the man pages

SHRED(1) User Commands SHRED(1)

"NAME shred - overwrite a file to hide its contents, and optionally delete it

SYNOPSIS shred [OPTION]... FILE...

DESCRIPTION Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hard‐ ware probing to recover the data."

What i understood as a beginner is that we can erase the files completely from the harddisk without keeping any traces of it.

If the above is correct is it ethical.

If not any explaination on shred in depth please.

Regards

Amod

2013-05-07 16:55:42 -0500 received badge  Popular Question (source)
2013-04-08 23:37:31 -0500 asked a question html form javascript php mysql.

Hi All.

1:I have a registration form written in html. 2: i have validated this form in javascript.

But when i searched how to insert data in mysql, it was a surprised to know that javascript is a client side and not server side script. hence i need a php script to insert data.

You would have realised my this moment that i am a absolute novice to this. Now i have two options.

1: Either I have to learn php at first place then validate the form in php next insert the data in mysql. this will make me a little bit bored. javascript was preety easy and simple

2: Or keep the data validated in javascript and then insert it in mysql by the help of php.

Is the second option possible? if yes can someone guide me how to.

I have L.A.M.P installed and running, And I have everything in /var/www/html directory.

thanks in advance

regards

Amod(India)

2013-03-28 12:32:21 -0500 answered a question App for viewing Autocad DWG files?

Draftsight is a good alternative.

2013-03-11 08:51:05 -0500 received badge  Supporter (source)
2013-03-03 11:28:56 -0500 asked a question Free cad disturbing yum update

Hi all,

I did yum update today and this was the result

> [amod@localhost ~]$ sudo yum update
[sudo] password for amod: 
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: free.nchc.org.tw
 * rpmfusion-free: mirrors.ustc.edu.cn
 * rpmfusion-free-updates: mirrors.ustc.edu.cn
 * rpmfusion-nonfree: mirror.cse.iitk.ac.in
 * rpmfusion-nonfree-updates: mirror.cse.iitk.ac.in
 * updates: mirrors.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package OCE-foundation.i686 0:0.8.0-3.fc18 will be updated
---> Package OCE-foundation.i686 0:0.11-2.fc18 will be an update
---> Package OCE-modeling.i686 0:0.8.0-3.fc18 will be updated
---> Package OCE-modeling.i686 0:0.11-2.fc18 will be an update
---> Package OCE-ocaf.i686 0:0.8.0-3.fc18 will be updated
---> Package OCE-ocaf.i686 0:0.11-2.fc18 will be an update
---> Package OCE-visualization.i686 0:0.8.0-3.fc18 will be updated
---> Package OCE-visualization.i686 0:0.11-2.fc18 will be an update
---> Package freecad.i686 0:0.12-9.fc18 will be updated
---> Package freecad.i686 0:0.13-1.fc18 will be an update
--> Processing Dependency: python-collada for package: freecad-0.13-1.fc18.i686
--> Processing Dependency: python-matplotlib for package: freecad-0.13-1.fc18.i686
---> Package smesh.i686 0:5.1.2.2-4.svn54.fc18 will be updated
---> Package smesh.i686 0:5.1.2.2-6.svn55.fc18 will be an update
--> Running transaction check
---> Package freecad.i686 0:0.13-1.fc18 will be an update
--> Processing Dependency: python-collada for package: freecad-0.13-1.fc18.i686
---> Package python-matplotlib.i686 0:1.2.0-8.fc18 will be installed
--> Processing Dependency: pytz for package: python-matplotlib-1.2.0-8.fc18.i686
--> Processing Dependency: python-dateutil for package: python-matplotlib-1.2.0-8.fc18.i686
--> Processing Dependency: pyparsing for package: python-matplotlib-1.2.0-8.fc18.i686
--> Processing Dependency: libagg.so.2 for package: python-matplotlib-1.2.0-8.fc18.i686
--> Processing Dependency: dvipng for package: python-matplotlib-1.2.0-8.fc18.i686
--> Running transaction check
---> Package agg.i686 0:2.5-13.fc17 will be installed
---> Package freecad.i686 0:0.13-1.fc18 will be an update
--> Processing Dependency: python-collada for package: freecad-0.13-1.fc18.i686
---> Package pyparsing.noarch 0:1.5.6-6.fc18 will be installed
---> Package python-dateutil.noarch 0:1.5-5.fc18 will be installed
---> Package pytz.noarch 0:2012d-2.fc18 will be installed
---> Package texlive-dvipng-bin.i686 2:svn26509.0-16.20130205_r29034.fc18 will be installed
--> Processing Dependency: texlive-kpathsea-lib = 2:2012-16.20130205_r29034.fc18 for package: 2:texlive-dvipng-bin-svn26509.0-16.20130205_r29034.fc18.i686
--> Processing Dependency: texlive-base for package: 2:texlive-dvipng-bin-svn26509.0-16.20130205_r29034.fc18.i686
--> Processing Dependency: tex-dvipng for package: 2:texlive-dvipng-bin-svn26509.0-16.20130205_r29034.fc18.i686
--> Processing Dependency: libkpathsea.so.6 for package: 2:texlive-dvipng-bin-svn26509.0-16.20130205_r29034.fc18.i686
--> Running transaction check
---> Package freecad.i686 0:0.13-1.fc18 will be an update
--> Processing Dependency: python-collada for package: freecad-0.13-1.fc18.i686
---> Package texlive-base.noarch 2:2012-16.20130205_r29034.fc18 will be installed
---> Package texlive-dvipng.noarch 2:svn26689.1.14-16.fc18 will be installed
--> Processing Dependency: texlive-kpathsea-bin for package: 2:texlive-dvipng-svn26689.1.14-16.fc18.noarch
--> Processing Dependency: tex-kpathsea for package: 2:texlive-dvipng-svn26689.1.14-16.fc18.noarch ...
(more)
2013-02-21 03:26:05 -0500 commented answer Can I use a USB stick to install fedora?

Hi ryan. i everytime blame fedora for not having gui for several commands. But you gui method to restore has surprised me . Thank you forr updating me

2013-02-20 10:18:08 -0500 commented question Size of i386 media for F18?

If you have a 8 gb usb you can directly burn the iso to usb and use as a installation media

2013-02-20 10:14:31 -0500 answered a question The printscreen key on my keyboard does not take a screenshot.

For those who don't know

Additionally we can have screenshots in different manner

  1. use ctrl+shift+printscreen to select a area, drag the selected area and leave to the desired position. you will have a screenshot of that particular area.

    1. use ctrl+shift+alt+r for a screencast. to stop screencast use the same pattern again.

rest all information is given in help.

2013-02-20 00:38:27 -0500 answered a question I'm looking for an alternative to "Garden CAD" for Fedora

Hi, one Alternative is Draftsight

Draftsight is not available in fedora repository as it is not open source but their website has a .rpm package. So download and use for individuals is free and installation is simple. for activation you just have to provide your email address.

A very basic cad software is

yum install qcad

.

But you will find draftsight more convinient.

2013-02-18 04:53:29 -0500 received badge  Teacher (source)
2013-02-18 01:43:47 -0500 answered a question Burn to USB

Hi

A short question but this has a long answer to it

To make it short, if you are allready using fedora and want to burn fedora iso follow the link here

make sure that you know what you are doing, read entire page.

2013-02-09 02:15:40 -0500 commented answer Auto running two commands at boot

one possibility if you have a file in /etc/modprobe.d/broadcom...somthing. you will see that wl is blacklisted allready. remove modprobe wl. from that list and reboot. it was successfull for me. probably might help you.

2013-02-03 23:45:15 -0500 commented question How do I use the Nemo File browser as default instead of Nautilus

1:have you install gnome-tweak-tool.