Did you know that you may install an Ubuntu server image just from a pendrive?
I downloaded the image, inserted a pendrive (be aware, it will be totally erased)...
dmesg
---------------------------------------------------
[25003.567296] usb 2-1.4: new high-speed USB device number 4 using ehci-pci
[25003.676610] usb 2-1.4: New USB device found, idVendor=03f0, idProduct=5307
[25003.676617] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[25003.676622] usb 2-1.4: Product: v165w
[25003.676627] usb 2-1.4: Manufacturer: HP
[25003.676631] usb 2-1.4: SerialNumber: 00000000000064
[25004.248877] Initializing USB Mass Storage driver...
[25004.249075] scsi4 : usb-storage 2-1.4:1.0
[25004.249243] usbcore: registered new interface driver usb-storage
[25004.249247] USB Mass Storage support registered.
[25005.249142] scsi 4:0:0:0: Direct-Access hp v165w 0.00 PQ: 0 ANSI: 2
[25005.249627] sd 4:0:0:0: Attached scsi generic sg3 type 0
[25005.250955] sd 4:0:0:0: [sdc] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[25005.251674] sd 4:0:0:0: [sdc] Write Protect is off
[25005.251683] sd 4:0:0:0: [sdc] Mode Sense: 00 00 00 00
[25005.252410] sd 4:0:0:0: [sdc] Asking for cache data failed
[25005.252417] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[25005.256280] sd 4:0:0:0: [sdc] Asking for cache data failed
[25005.256287] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[25005.746065] sdc: sdc1 sdc2
[25005.749229] sd 4:0:0:0: [sdc] Asking for cache data failed
[25005.749236] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[25005.749243] sd 4:0:0:0: [sdc] Attached SCSI removable disk
---------------------------------------------------
... that it was identified as a /dev/sdc, then I saved the image into the pendrive:
---------------------------------------------------
cat ubuntu-12.04.2-server-amd64.iso > /dev/sdc
---------------------------------------------------
Just like that! Boot your server and enjoy!
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
2013/08/16
2011/09/01
BBC Radio Stream in Windows and Linux
You may listen to the BBC Radio Streams available from this webpage:
In Windows you may add the URLs to Winamp:

But a list of multiple URLs is added (?)... ok, I don't know why... I just played the first one and deleted the trash.

After playing, the URL just showed right.

And then you can save the playlist.
In Linux (I'm using Debian GNU/Linux Squeeze) you can use vlc:
You just copy the link location and then add it into vlc pressing [CTRL+N]:
The playlist that you saved from Winamp may be play in vlc, nice!
In Windows you may add the URLs to Winamp:
But a list of multiple URLs is added (?)... ok, I don't know why... I just played the first one and deleted the trash.
After playing, the URL just showed right.
And then you can save the playlist.
In Linux (I'm using Debian GNU/Linux Squeeze) you can use vlc:
sudo apt-get install vlc
You just copy the link location and then add it into vlc pressing [CTRL+N]:
The playlist that you saved from Winamp may be play in vlc, nice!
2011/08/31
Turning off the highlighting in nano editor
Some times I dislike the highlighting in my nano editor.
To turn it off:
a) You just remember to launch nano with the -I option in the command line to ignore the nanorc files where the color settings are,
nano -I
b) You may set an alias for the command:
alias nano='nano -c -S -I'
c) ?
To turn it off:
a) You just remember to launch nano with the -I option in the command line to ignore the nanorc files where the color settings are,
nano -I
b) You may set an alias for the command:
alias nano='nano -c -S -I'
c) ?
2011/08/13
org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:XXX
This exception:
org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:1234
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
at org.geoaire.jobscheduler.server.netty.JSServer.start(JSServer.java:82)
at org.geoaire.jobscheduler.server.Server.process(Server.java:83)
at org.geoaire.jobscheduler.server.ui.cli.main.Main.run(Main.java:65)
at org.geoaire.common.ui.cli.CommonMain.start(CommonMain.java:95)
at org.geoaire.jobscheduler.server.ui.cli.main.Main.main(Main.java:93)
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:468)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
... 5 more
may have several causes but sometimes you just need to check out the basics... did you check the plug?
Well, in my case this was a little "virtual" because the unconnected device was the loopback network interface! Yep, I lost it after playing with my network definitions... :-P
As David J. Agans mentioned in the chapter 9 of his useful book Debugging, there is a process to debugging anything and one step is to check the basics as "Check the plug". Ok, I recognize that it took me a time to remember this simple stuff... but the lesson is now very fresh.
So after editing /etc/network/interfaces and bringing back my lo interface, the program run ok.
org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:1234
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
at org.geoaire.jobscheduler.server.netty.JSServer.start(JSServer.java:82)
at org.geoaire.jobscheduler.server.Server.process(Server.java:83)
at org.geoaire.jobscheduler.server.ui.cli.main.Main.run(Main.java:65)
at org.geoaire.common.ui.cli.CommonMain.start(CommonMain.java:95)
at org.geoaire.jobscheduler.server.ui.cli.main.Main.main(Main.java:93)
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:468)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
... 5 more
may have several causes but sometimes you just need to check out the basics... did you check the plug?
Well, in my case this was a little "virtual" because the unconnected device was the loopback network interface! Yep, I lost it after playing with my network definitions... :-P
As David J. Agans mentioned in the chapter 9 of his useful book Debugging, there is a process to debugging anything and one step is to check the basics as "Check the plug". Ok, I recognize that it took me a time to remember this simple stuff... but the lesson is now very fresh.
So after editing /etc/network/interfaces and bringing back my lo interface, the program run ok.
Subscribe to:
Posts (Atom)

