This is a very relevant article to the Ubuntu and Unity debate, vs other Linux distributions, especially, Linux Mint.
Personally, I am on Debian Squeeze. Very solid, but NOT for n00bs. Tad difficult to configure.
Wayno
Just another WordPress site
14
Nov
This is a very relevant article to the Ubuntu and Unity debate, vs other Linux distributions, especially, Linux Mint.
Personally, I am on Debian Squeeze. Very solid, but NOT for n00bs. Tad difficult to configure.
Wayno
6
Nov
A lot of times, I want to see what the task number is of a running task. I might want to see if there are multiple occurrences of a task, or a zombie task (defunct).
Easy way is to:
ps -ef | grep taskname
ps says give me a snapsnot of all the running tasks. The -ef says give me all the tasks, and give me a full listing. That is then piped (that is the output of ps, becomes the input to grep and we are searching for some task name.
But that get’s tiresome.
Easier way? Sure!
Add an alias to .bash_aliases!
alias thog='ps -ef | grep $1'
So use your favourite editor, add the line above, then exit.
NOTE: IN ORDER FOR CHANGES TO BE READ, YOU MUST LOGOUT/BACK IN.
So we created a command called “thog” (could be anything as long as it doesn’t conflict with any installed programme) — and I pass the command line argument $1 to it. (The first command line argument)
So the output would look like this:
nwayno@Homer:~$ thog java
root 2031 1 0 Oct28 ? 00:13:16 java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar
nwayno 28470 28430 0 21:07 pts/0 00:00:00 grep java
That shows me the java (or whatever) task number. Might be useful if you want to kill a task.
Want to see all the Zombie tasks? (tasks that have no parent task)
nwayno@Homer:~$ thog defunct
root 28843 2067 1 21:11 ? 00:00:00 [miniserv.pl]
nwayno 28852 28430 0 21:11 pts/0 00:00:00 grep defunct
So now you know.
By the way, I corrected the spelling of Adventures in the title. Taking it a bit easy this week, still healing.
enjoy,
Wayno
3
Nov
Several people have asked: Where’s Wayno?
I had a bit of day surgery this week, and I am still recovering from that. Hopefully I will be back up to par in a couple of weeks.
Wayno
23
Oct
Heh. This was a new trick on me. I did not know you could use Nautilus as an ftp client. Here’s how to do it.
1. Open nautilus, then File/Connect to server.
2. Fill in the information, hit connect and you are good to go!
Wayno
12
Oct
27
Sep
This is something I am asked by n00bs a lot. My Linux system doesn’t automount my USB or micro sd card / camera card, what do I do now?
(NOTE: You can usually tell an automounted device because it will have a mount point of
/media/volumelabel
First of all, like Douglas Adams said: Don’t panic!
The first thing you want to do, is to find out if Linux can first see the device? How? Easy.
1. The first thing we want to do, is see if Linux see’s the device? How? Easy! lsusb
lsusb
Sample lsusb output
nwayno@Homer:~$ lsusb
Bus 002 Device 003: ID 03f0:4211 Hewlett-Packard OfficeJet 7300 series
Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 010: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
Bus 001 Device 006: ID 0488:0022 Cirque Corp.
Bus 001 Device 004: ID 0bc2:3000 Seagate RSS LLC
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and sure enough the device I am looking for is present:
Bus 001 Device 010: ID 0951:1603 Kingston Technology DataTraveler 1GB/2GB Pen Drive
It is NOT mounted, but I know that Linux can see it.
2. The second step is to determine what the device is called. How do you do that? blkid. blkid will list all the block devices attached to a system. NOT necessarily mounted. We want ALL devices, so we do that as root. Be patient! This can take a couple of minutes (Your patience will be rewarded.)
sudo blkid
Sample blkid output
nwayno@Homer:~$ sudo blkid
[sudo] password for nwayno:
/dev/sda1: LABEL=”Homer699″ UUID=”12345AB567″ TYPE=”ntfs”
/dev/sda2: UUID=”4dac-408816aecd1e” TYPE=”swap”
/dev/sda3: LABEL=”homer” UUID=”4e75-985fd59115e4″ TYPE=”ext4″
/dev/sda4: LABEL=”waynohome” UUID=”bc4-4c34-9d7d-3f5a56d13″ TYPE=”ext4″
/dev/sdb1: LABEL=”BFDNTFS” UUID=”FC1687414″ TYPE=”ntfs”
/dev/sdb2: LABEL=”bfdlinux” UUID=”143-4c0-4db-a392-55fb94a0f” TYPE=”ext4″
/dev/sdd1: UUID=”7E-4CEC” TYPE=”vfat”
/dev/sdd2: UUID=”42062a-9f99-a4ec71894″ TYPE=”ext4″
nwayno@Homer:~$
Notice that all the devices on my system were listed. Both mounted and umounted.
So the guy I am looking for is /dev/sdd1
YOUR DEVICE MAY BE A DIFFERENT NAME.. Remember the device is STILL not mounted at this point.
We know that /dev/sdd1 is vfat which is pretty typical of micro-sd cards. They are almost always vfat.
3. We have a couple of choices on mounting the device. We can use the a system mount point /mnt or create one with mkdir. I’ll only show the mount with the system mount point, but it could easily be anything that you create. Remember that to Linux, a device is just a mount point.
4. So become root, and mount the device:
sudo mount -t vfat /dev/sdd1 /mnt
YOUR DEVICE MAY BE A DIFFERENT NAME.
Remember, only root can mount/unmount (umount) devices.
The -t tells us that the device is vfat (windows). We got that from the blkid command. If it’s not vfat, the output of blkid well tell us what the file structure is. Use man mount for more information.
/dev/sdd1 was also obtained from the blkid information, tells us to associate this device with the mount point that follows: /mnt.
5. To access you files, launch your file browser (I use nautilus and just navigate (Filesystem/mnt directory) or just do a a cd to the /mnt directory:
And the contents of /mnt are:
cd /mnt
6. List the files:
ls
and you should get some output:
A6VWN4.pdf
aztcs.htm
budgeting
discovery
FNPACK
ubuntu_11.04.png
ubuntu_11.04_unity.png
unity_11_04.png
vsftpd.conf_25K
7. And how much space do you have left on that device?
df -h
the df command displays used and free space on the device:
Sample df -h output
nwayno@Homer:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 50G 23G 25G 48% /
none 934M 268K 933M 1% /dev
none 940M 1.5M 939M 1% /dev/shm
none 940M 344K 940M 1% /var/run
none 940M 4.0K 940M 1% /var/lock
/dev/sda4 834G 306G 486G 39% /home
/dev/sdb2 773G 397G 337G 55% /media/bfdlinux
/dev/sdb1 147G 90G 58G 61% /media/BFDNTFS
/dev/sdd1 975M 847M 128M 87% /mnt
nwayno@Homer:~$
YOUR DEVICE MAY BE A DIFFERENT NAME.
In my case I have used 847M, and have 128M free on a 975M device (/dev/sdd1 above or /mnt)
8. All done? Umount the device, and sync the output.
umount /dev/sdd1
YOUR DEVICE MAY BE A DIFFERENT NAME.
sync
sync flushes the buffers, writes any pending data to the drive, and avoids data loss!
Easy! Painless!
Wayno
16
Sep
No place on the internet, have I found the location to add your own music, to a Samsung Restore Cell Phone. Till now. While this is Linux oriented, the same location would be used in Windows.
It goes into the Downloads folder. (Yes. Spelled “Downloads” with a capital D!)
1. Copy your music from your source, to this folder. Yes you can have embedded folders. Mine is called: “The Moody Blues”
You can use nautilus to create the folder, or mkdir from the command line. In Windows, you would use the File Manager.
sudo mount /dev/sdxx /mnt
where xx is the device name (hint: use sudo blkid to get that)
You will notice that when you use the media player, that a file in (yup, remember this is windows) is created called:
SamsungMusic_key.txt
The file seems to contain some random 4 digit number.
You may also notice a folder called “music” That’s NOT where you put the music. BUT, you will find the file: playlist.mdb Yup, that’s a Microsoft Database file.
Oops! Added an SONG you no longer want? Want to make it disappear? Sort of easy. This is how you do it from the phone itself.
1. Select the LEFT Menu button.
2. Go to Tools and Settings.
3. Select Tools.
4. Mass Storage.
5. File Manager.
6. Memory Card
7. Downloads folder.
8. Open the Folder that your music is in, then the sub-folder within that contains the song you to delete, and finally the song. Nope it will NOT let you just delete the folder, if it contains files. You must delete the contents of the folder, one at a time.
9. Options Button (right button)
10. Delete
Enjoy your music!
Wayno
29
Aug
I have been fighting video problems with Debian for a couple of weeks. I corrected the /etc/X11/xorg.conf file here.
If it looks familiar it should! This is the /etc/X11/xorg.conf file from the 64 bit Ubuntu 10.10 Livecd. I put it onto a usb flash drive, used sneaker net (which means I pulled it out of one machine, walked over, and put it into another), and copied it over. Restarted the gdm3 on 64 bit Debian Squeeze. I have full use of the hardware graphics capability and monitor sizes.
Using Ubuntu to fix Debian. Oh! I so love irony.
Thanks Joe for this crazy idea. But it worked!
Wayno
25
Aug
Let’s face it. Debian != Ubuntu. It can be difficult to configure. But this DVD may help!
BOTH 32 and 64 BIT SYSTEMS on the DVD (under $5)
The main advantages to this DVD over this free ones you can at the Debian Site are:
1. Comes with the non-free software already on the dvd.
2. Comes with drivers you’d have to hunt up, like the atheros wireless driver.
Order it here
Thanks Joe!
Wayno
25
Aug
This is pretty easy, but there are some caveats (warnings)
! ! ! W A R N I N G ! DANGER WILL ROBINSON! W A R N I N G ! ! !
Using this method, your userid and password are transmitted unsecured! in the open. For anyone to see. DO NOT ATTEMPT THIS ON A PUBLIC NETWORK. BAD IDEA!!
Why I do this? Sometimes someone sends a very large message to my parents, and they are not on a super fast connection. And they don’t want to spend 20 minutes downloading this, to find out it’s a joke from someone. Easy way to identify who sent the message, and delete the message, without having to spend the time to download it.
Port 110 is the POP (Post Office Protocol) port.
1. So let’s connect to the pop server:
telnet yourisps.mailserver 110
Trying 86.2.12.45…
Connected to yourisps.mailserver
Escape character is ‘^]’.
+OK abdefg InterMail POP3 server ready.
2. And type in the word “user” followed by your userid. I can not emphasize enough. Your userid and password are transmitted unsecured. ONLY DO THIS FROM HOME, NOT A PUBLIC NETWORK!
user youruserid
+OK please send PASS command
pass yourpassword
+OK youruserid is welcome here
3. Okay were logged on, let’s see what we got:
Please note: This is ALL fictitious (fake) information.
list
+OK 2 messages
1 20048503
2 9585
.
4. Okay we have two messages, let’s look at the first one.
The format for the top command is: top message# #linestodisplay
In this case I want to look at message number 1, and only the first line. This will give me the identification of who sent the message.
top 1 1
Sample output:
+OK
Received: from doughboy.dohnut.com ([241.13.148.32])
by eastrmimpi03.cox.net with IMP
id Qlpf1h00v0syt8Y01lpgZb; Thu, 25 Aug 2011 17:49:45 -0400
X-CT-Score: NA
X-Authority-Analysis: v=1.1 cv=IuAmMtz0fBBeZiIhdxTxU86IG4HjPW3u5r/qc1hhkRo=
c=1 sm=1 a=3eZ7Q9b2IqIA:10 a=rkfKbSMykxIA:10 a=MRZ0FHSSkhOHWfuVvhvwPg==:17
a=K3e1NQirAAAA:8 a=kTxl9t5-ZLAzewleIv8A:9 a=QEXdDO2ut3YA:10 a=yMhMjlubAAAA:8
a=SSmOFEACAAAA:8 a=CjxXgO3LAAAA:8 a=rWpkTK4KLj79uxU1I9oA:9
a=mdl0ZD2nbXoXlwIOBxcA:7 a=gKO2Hq4RSVkA:10 a=hTZeC7Yk6K0A:10
a=PIhB4iMt3BeqywaJV8IA:9 a=KQqxNPgzF0kA:10 a=-TsIfCouYY1OzVOR:18
a=2zCILR_UXJjhw6Bkj5wA:9 a=GgDoAz7O_zbXHfmf:18 a=TqMuSDJolXCvaU-DJ8gA:9
a=XsCmn76AzMD1AyMi:18 a=cbLqbakRlVZmJxlxcyMA:9 a=ViQt9kA691hNrGmx:21
a=BM–FZgVJJwMtIjX:21 a=DmoNDgEfHTn6PCMi:18 a=MRZ0FHSSkhOHWfuVvhvwPg==:117
X-CM-Score: 0.00
Received: from doughboy.dohnut.com (localhost [127.0.0.1])
by doughboy.dohnut.com (Postfix) with ESMTP id 895A140B7BF
for
Delivered-To: youruserid
X-Pobox-Orig-Sender:
12741D6E-CF64-11E0-BF51-DB7D98E6108A-87405395!doughboy.dohnut.com
x-pobox-client-address: 241.13.148.42
x-pobox-client-name: doughboy.dohnut.com
Received: from doughboy.dohnut.com (doughboy.dohnut.com
[241.13.148.42]) by doughboy.dohnut.com (Postfix) with ESMTP id 184CF40B7C1 for
X-Authority-Analysis: v=1.1 cv=SOlsIBN44tkg4MqIq+y2aLZdhoA3kHpmiRsLue6rfnM=
c=1 sm=0 a=rkfKbSMykxIA:10 a=8m3kUcaNEbPth8vwNQ8PxA==:17 a=K3e1NQirAAAA:8
a=kTxl9t5-ZLAzewleIv8A:9 a=QEXdDO2ut3YA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8
a=CjxXgO3LAAAA:8 a=rWpkTK4KLj79uxU1I9oA:9 a=mdl0ZD2nbXoXlwIOBxcA:7
a=gKO2Hq4RSVkA:10 a=hTZeC7Yk6K0A:10 a=PIhB4iMt3BeqywaJV8IA:9
a=KQqxNPgzF0kA:10 a=-TsIfCouYY1OzVOR:18 a=2zCILR_UXJjhw6Bkj5wA:9
a=GgDoAz7O_zbXHfmf:18 a=TqMuSDJolXCvaU-DJ8gA:9 a=XsCmn76AzMD1AyMi:18
a=8FVIF5GNE0wYr8ZW84gA:9 a=zdyBz9CGz3EGURmb:21 a=RR_I2oJlBLEOdRJK:21
a=DmoNDgEfHTn6PCMi:18 a=8m3kUcaNEbPth8vwNQ8PxA==:117
X-Cloudmark-Score: 0
X-Originating-IP: 241.13.148.42
Received: from [241.13.148.42] ([241.13.148.42:49183] helo=poppinfresh) by
cdptpa-oedge01.mail.dohnut.com (envelope-from
2.2.3.46 r()) with ESMTP id E6/80-15242-C13C65E4; Thu, 25 Aug 2011 21:48:48
+0000
From: “poppinfresh”
Date: Thu, 25 Aug 2011 16:47:03 -0500
Message-ID: <004c01cc6370$8860e440$9922acc0$@rr.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=”—-=_NextPart_000_004D_01CC6346.9F8ADC40″
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcxjZxAcX4lsVQV6T1OHvfeElRfFQQACM3hw
Content-Language: en-us
X-Pobox-Pass: poppinfresh@dohnut.com is whitelisted
This is a multi-part message in MIME format.
.
5. And we want to delete the offending message
ONCE YOU DELETE THIS MAIL, THERE IS NO GOING BACK. IT IS GONE FOREVER.
dele 1
+OK
6. And logoff
quit
+OK youruserid InterMail POP3 server signing off.
Connection closed by foreign host.
dohboy@willy:~$
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.