I just bought a Raspberry Pi. Mostly out of curiosity. Have been a hobbiest since the days of CP/M. Never really looked at Linux or any other "__ix". Now that I am retired, I can and will. Suggestions on where to start with command line usage? Best small footprint GUI? Oh, yeah. Recommendations for USB wireless dongle for the Raspberry?
Thanks,
tnsealawyer (ret.)
Hi I am not a complete Linux newbie, but I have a challenge that is new to me.
I am wanting to be able to connect to a linux box (Raspberry Pi running Debian) via ssh directly from a single computer. I want to be able to plug in a ethernet cable from a laptop to the Raspberry Pi so that I can configure it via ssh or a webpage.
I have had a few pieces of hardware, routers, printers etc that allow this sort of connection for configuration, I just would like to know how it is done.
My question is how do I set up the /etc/interfaces file to allow the Raspberry Pi to be found by the laptop.
Once configured I would want the Raspberry Pi to obtain its IP address via DHCP when connected to a network.
Any suggestions, ideas would be appreciated.
I am trying to build a socket to retrieve the ethernet packets from ecu. When i run my code on windows there is no problem and the code runs correctly. But when i run my code on Linux it gets stuck at s.recv(65565). I have already set static ip in /etc/network/interfaces as follows: iface eth0 inet static address 160.48.199.91 netmask 255.255.255.0 gateway 160.48.199.254
I tried a simple code of socket on raspberry pi. but it still gets stuck at s.recv(65565). I also tried to implement the program using multicast. but the problem is that when i create a socket for icmp protocols then I could see the data from the ECU after using command "ping -I echo 239.192.255.251" in another terminal. (where 239.192.255.251 is the multicast address) But when I change the socket protocol type to udp, tcp or raw then it again gets stuck at s.recv().
Imp: When i run the "netstat -s" command in terminal then i could see that there are 0 messages received for udp and tcp. But in Wireshark i could see the udp messages from ECU. Is linux killing all the udp and tcp packets ? How should i solve this ?
(complete setup is connected as: ECU ---> Media converter ---> Raspberry Pi. There is no LAN, no firewall, no internet)
Could anyone please help me with this problem ?
I have a WiFi dongle that said to support GNU/Linux, however no drivers were found on the CD, after hours of research i found this and installed the driver, I'm pretty sure my device is listed as supported, but the device is still not recognized, it is listed on lsusb command, but not recognized by any WiFi program like WiFi Radar and wireless-tools, also when i use the iwconfig command, this is what i see, i really need this wireless connection working, can you help, please?
I installed ns2 using (sudo apt-get install ns2)
I hav code for black hole attack in aodv manet and while trying to run it on ns2 Im getting the fallowing error message
please tell me how to fix this..??
INITIALIZE THE LIST xListHead
(_o58 cmd line 1)
invoked from within
"_o58 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o58" line 2)
(SplitObject unknown line 2)
invoked from within
"_o58 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
invoked from within
"set node_(2) [$ns node]"
(file "atk3.tcl" line 55)
I'm currently using the command below, to output the memory usage of a debian system in bash scripts.
Code:
memusage=$(memusage=$(/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}' | cut -d "%" -f1);echo "$(printf "%0.0f\n" $memusage)") && echo Memory Usage is $memusage
Being new to Linux though, I just found out that Linux takes up a lof of memory and puts it in cached.
Code:
root@Client1:~# free -m
total used free shared buffers cached
Mem: 927 799 128 0 15 754
-/+ buffers/cache: 28 898
Swap: 99 0 99
So the first command will actually output that the memory usage is 87%, when in reality is not. Its actually thinking that the memory usage is high because its also counting the cached memory, as used memory.
How can I modify the first command not to consider cached memory, as used memory?
Thanks
Hi all! Just joined. First post.
Looking around Amazon.com I see that there are a lot of books out there. I was wondering if there were a small number that were generally considered to be the best for a newbie to learn Ubuntu and the command line.
I am a Windows refugee having bought a clean machine from System76 in May 2014 with Ubuntu 14.04 LTS installed. I got my first computer back in the early 90's and actually liked DOS! Kind of full circle I guess.
Any suggestions are appreciated.
Thanks!
Kevin
I installed Linux Mint on my Dell Latitude D630 Wi Fi and I love it!! While the lap top was wired to the internet, I could do anything I wanted to do.
But I have wifi. And, the steps I found online did not help me get wifi set up.
When I type "iwconfig" from the command line, it says "no wireless extensions"
Please help. I need this.
I want to know the approximate maximum memory usage by my process. If I start the process using "time -v <myprocess>", I get the output after it terminates. This works fine in RedHat Enterprise Linux, but not in Centos. There does not seem to be an option "-v" for time. Do I miss anything ? What is the equivalent in Centos to know the peak memory usage by a process ?
Hi,
I am new in linux. I have following problem while running the codes of TORA in ns-2.35 in ubuntu.Can you please help me?
num_nodes is set 6
INITIALIZE THE LIST xListHead
(_o22 cmd line 1)
invoked from within
"_o22 cmd port-dmux _o37"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o22" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o19" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o19" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o19" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 85)
(Simulator create-wireless-node line 85)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
invoked from within
"set n(0) [$ns node]"
(file "tora2.tcl" line 115)
Hello - This is my first interaction with Linux. I recently purchased a Raspberry Pi 2 and am running the full version of Raspbian. I intend to use the Pi as my PLEX media server however I have been unsuccessful in mounting my NAS. I've read a number of guides on how to accomplish this but have been striking out on all accounts. I was hoping someone could help me with what information I should be adding.
NAS - Synology Diskstation DS212j - 192.168.5.195
Linux device - Raspberry Pi 2 - Raspbian - 192.168.5.186
Router - D-Link DIR-655 - 192.168.5.1
I've been accessing the Pi via ssh on my MacBook PRO - 192.168.5.188
Thanks for any assistance you can provide.