Wayno's Adventures and sojourns through Linux

  • Home
  • About
  • Contact
  • Email Subscription
  • Facebook Like
  • RSS

14

Nov

Linux Mint: The new Ubuntu?

Posted by Wayno  Published in debian, Skill Level: Easy, Uncategorized

This is a very relevant article to the Ubuntu and Unity debate, vs other Linux distributions, especially, Linux Mint.

Linux Mint: The new Ubuntu?

Personally, I am on Debian Squeeze. Very solid, but NOT for n00bs. Tad difficult to configure.

Wayno

no comment

6

Nov

What task number is running in Linux?

Posted by Wayno  Published in bash, Skill Level: Easy, Skill Level: Medium, Uncategorized

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

no comment

3

Nov

Where’s Wayno?

Posted by Wayno  Published in Skill Level: Easy, Uncategorized

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

no comment

23

Oct

how to use nautilus as an ftp client

Posted by Wayno  Published in debian, filesharing, ftp, gnome, howto, Skill Level: Easy

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.

nautilus as an ftp client

2. Fill in the information, hit connect and you are good to go!

Wayno

no comment

12

Oct

Linux Fundamentals

Posted by Wayno  Published in howto, Skill Level: Easy

New to Linux? Want to learn some of the basics?

This is a great place to start!

Linux Fundamanetals

Thanks Scott!

Wayno

no comment

27

Sep

How to mount a usb or micro sd card, when Linux does not automount

Posted by Wayno  Published in bash, debian, howto, Misc. other devices/things, Skill Level: Easy

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 vftat.

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:

/mnt directory

And the contents of /mnt are:

contents of /mnt


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

4 comments

16

Sep

What folder do you use to add music to a Samsung Restore?

Posted by Wayno  Published in Audio, debian, howto, Misc. other devices/things, Music, Skill Level: Easy, sound

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.

Virgin Mobile Music Folder

Virgin Mobile Music Folder Location


You will notice that my microsd is labelled WAYNOSVMFON. You can do this with gparted. Note that the microsd is formatted as vfat. Debian has some issues auto-mounting vfat partitions, so you may need to manually mount it.


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:

Virgin Mobile Music Key File

Virgin Mobile Music Key File

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

no comment

29

Aug

Ubuntu /etc/X11/xorg.conf from livecd fixes Debian Video Problems

Posted by Wayno  Published in debian, Joe, Skill Level: Easy, video

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

no comment

25

Aug

Debian DVD with missing device drivers and non-free software installed

Posted by Wayno  Published in debian, DVD, Joe, Misc. other devices/things, Skill Level: Easy, wireless

Let’s face it. Debian != Ubuntu. It can be difficult to configure. But this DVD may help!

Debian DVD

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

no comment

25

Aug

How to look at email with a telnet client

Posted by Wayno  Published in howto, Skill Level: Easy

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 ; Thu, 25 Aug 2011 17:49:13 -0400 (EDT)
Delivered-To: youruserid
X-Pobox-Orig-Sender: X-Pobox-Delivery-ID:
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
; Thu, 25 Aug 2011 17:48:48 -0400 (EDT)
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 ) (ecelerity
2.2.3.46 r()) with ESMTP id E6/80-15242-C13C65E4; Thu, 25 Aug 2011 21:48:48
+0000
From: “poppinfresh” To: Subject: Poppin Fresh Ideas
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:~$

no comment
« Previous Page — Next Page »

 

May 2012
S M T W T F S
« Apr    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Recent Posts

  • de-smurfing youtube (or why are all the people on youtube blue?)
  • Monzy kill -9 (Nerdcore)
  • Finding and installing 64 bit Firefox and Thunderbird for Debian
  • Allowing more then one user to start an X session (pam authentication)
  • First Look: Ubuntu 12.04 lts

Categories

  • Android
  • apt-get
  • Audio
  • backup
  • bash
  • Browsers
  • Compiling Source Code
  • crontab
  • debian
  • debugging
  • Deposit @ Home
  • DNS – Domain Name System
  • DVD
  • filesharing
  • fstab
  • ftp
  • gnome
  • grub
  • howto
  • Humour
  • Internet Connection Sharing
  • java
  • Joe
  • Linux Networking
  • loni
  • Misc. other devices/things
  • Music
  • Natty
  • netbook
  • Printers/Printing
  • rsync
  • samba
  • Security
  • Skill Level: Advanced
  • Skill Level: Easy
  • Skill Level: Medium
  • sound
  • ssh
  • Thunderbird
  • Uncategorized
  • ups
  • video
  • wireless
  • word processors
  • X11

Archives

  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • September 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • October 2009
  • September 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009

Blogroll

  • Hak5 – Trust your Technolust
  • Scott Linux – A place to geek out
  • Tucson Computer Society

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Posts

  • de-smurfing youtube (or why are all the people on youtube blue?)
  • Monzy kill -9 (Nerdcore)
  • Finding and installing 64 bit Firefox and Thunderbird for Debian
  • Allowing more then one user to start an X session (pam authentication)
  • First Look: Ubuntu 12.04 lts
  • Gnome classic (fallback) in Ubuntu 12.04
  • Cat listening to Music
  • How to send broadcast messages to all users in Windows or Linux
  • Cox Communications “quality challenged” internet connection (of Cats and Cox)
  • Why RTFM is important

Recent Comments

  • Shannon in de-smurfing youtube (or why are all the people on …
  • Juan Pedro Sanchez in Getting a Webcam/Logictech Quick Cam to work with …
  • Khorshed Alam in Mounting an iso9660 iso file in Linux (ubuntu/debi…
  • ActionParsnip in Installing gnome-3 on Ubuntu 10.10/10.04
  • Wayno in Cox Communications "quality challenged" internet c…
  • sandeep in How to mount a usb or micro sd card, when Linux do…
  • Wayno in How to mount a usb or micro sd card, when Linux do…
  • sandeep in How to mount a usb or micro sd card, when Linux do…
  • mahesh in How to install Java 1.7 for Ubuntu/Debian (apt-get…
  • Wayno in Why RTFM is important
© 2007 Wayno's Adventures and sojourns through Linux



Theme by WebRehash | Free WordPress Templates | Valid XHTML | Valid CSS 3.0 | Powered by Wordpress