Hi all,
I have a large csv file which linux sees large amounts of it as one line. I've been trying to break it up with sed, from..
(name,address,etc),(name,address,etc),(name,address,etc) into
(name,address,etc)
(name,address,etc)
(name,address,etc)
each on their own line.. can this be done with sed? And if not what other commands can I use to do it..
Thanks
pulsar..
It seems like it happened when I upgraded to 14.04. When I first open Firefox the line isn't there, but as soon as I enter something and the site comes up, there is a solid black line over the address bar. (see screenshot) When I put the cursor on the right end of the black line and hit the left arrow (not the backspace), the line (space by space) disappears. Any ideas? Thanks!
Hi all
This is bothering me too much, please tell me how to change IP address of remote machine while using ssh successfully.
I follow these steps:
1. connect to remote server using 'ssh root@server'
2. Edit '/etc/sysconfig/network-scripts/ifcfg-eth0' file
3. issue 'service network restart' command... (at this point ssh connection gets hanged)
4. Break from hanged ssh connection (<ENTER>~.)
5. Wait for some time to let service restart
6. Then finally, ssh with new ip address.
All is fine, but last time, i did something wrong while assigning new IP address, and after service restart, remote server didn't get new ip address - and now i cant connect to remote server.
Fortunately, i had a friend there, who helped me correct the problem so that i can connect again.
But what to do when there is no one to help? Is there other way i should approach this problem?
Thanks
I have a shell script that currently changes the mac address of eth0 repeatedly. However, it does not change the public IP address, confirmed by wget -qO- ipinfo.io/ip .
PERIOD=10
while [ 1 ]
do
echo "Changing mac address..."
let lastup=`date +%s`
macchanger -A eth0
let diff=`date +%s`-$lastup
if [ "$diff" -lt "$PERIOD" ]
then
sleep $(($PERIOD-$diff))
echo "Changed mac address successfully."
echo
elif [ "$diff" -gt "$PERIOD" ]
then
echo "Command took longer than iteration period of $PERIOD seconds!"
fi
done
The script needs to change the IP Address statically.
Also, ultimately, what I am trying to accomplish, for security reasons, is to frequently and automatically change a computer's public IP address and mac address. This way, my office's computers, when using the Internet, has an additional form of protection.
I have Debian 7.7 and have just installed Icedove email client.
I want to create a free email address so I can have a new email account.
When I launch Icedove, I get a window saying 'Would you like a new email address?'
It then offers a search button for email addresses. Why? If I create an address it will need to be unique - so there's nothing for it to find.
Also, I input an email address I want and it seemed to be saying that the propietary host server (in this case gandi.net) wanted £4 ($6) for the account.
Can someone please say a little more about Icedove? Believe me, there is little to learn from Youtube and the internet.
The two charge controllers for my solar system are connected to my router allowing my computer to access them for data gathering. Using the address required in Windows is "tsmppt13190256/" for one of them ( tsmppt plus the serial number ). This address works with all browsers with windows .
Using the same browser on various Linux machines yields "web page not found" Morningstar ,who makes these excellent controllers , says they support only Windows. I've tried using the numbered ( 4 groups of 4 digits ) equal and even the "tiny URL" but nothing works .
I've tried adding ".,com " and HTTP:// "
How can I how can I get my Linux browsers to accept this address ?
Thanks a lot .
Ralph
I have two centos 7 Server machines. "Machine-1" is having two NIC cards, one with public ip and another with private ip address. "Machine-2" is having a one NIC card with a private IP Address. how can i configure NAT on machine-1 to forward all TCP Traffic coming on public ip to the private ip of machine-2.
Pls give me a solve.its give me pain
I have two servers, “ServerA” and “ServerB”. Using SLES SP3.
ServerA is the main server with LTSP running
I have used DD to image the drives from ServerA to ServerB. ServerB now boots and is identical to ServerA,and all is well. I want to use ServerB as a backup server, so if ServerA goes down I can bring server online. Obviously in order to put them both on the same network (to keep the user files updated on a daily basis) I need to change the IP address and the host name of serverB (currently is the same as ServerA).
I have done the following (copied from my notes):
Code:
The following file, binds the ethernet MAC address to ETH0 or ETH1 etc.. We need to delete this file so that a new one is automatically created during reboot with the correct MAC address bound to ETH0
Delete this file:
/etc/udev/rules.d/70-persistent-net.rules
make sure to change the static IP address in the following files
/etc/dhcp.d
/etc/hosts
/etc/sysconfig/network/ifcfg-eth0
/opt/ltsp/i386/etc/ltsp.conf
give the system a different host name in:
/etc/HOSTNAME
Reboot the system
When I change the HOSTNAME, the server will boot, bring me to a log in screen and then after I log in it will just sit there with the green background and a cursor. What files am I forgetting to change..
hello all,
I am using linux machine. There are total 6 stages of linux boot process: BIOS
MBR
GRUB
KERNEL
INIT
RUNLEVEL
Is it possible to read HDD serial number and mac address from the GRUB??
Thanks in advance..
hello guys,
i have a NAS which I change the IP Address but the old IP Address was already mounted on my Linux box and forgot to do umount.
when i type df -h output is like this:
//192.168.1.67/NASK1 5.5T 3.6T 2.0T 65% /home/NASBak
//192.168.1.125/NASK1 5.5T 3.6T 2.0T 65% /home/NASBak
//192.168.1.27/NASK1 5.5T 3.6T 2.0T 65% /home/NASBak
The current used IP is xx.xx.1.67 and xx.xx.1.27
How do I remove the 192.168.1.125?
i know i can do like umount /home/NASBak
but it will unmount also the other 2 IP Addresses
is there a way to unmount by IP Address?
Thanks.
I just installed Redhat 7 and try to config the network , add the IP address to network card , but I got the problem.
I modify the file /etc/sysconfig/network-scripts/ifcfg-enp0s3 , the configuration is as below , and then reboot .
DEVICE="enp0s3"
NETBOOT="yes"
HWADDR="08:00:27:15:38:B7"
TYPE="Ethernet"
BOOTPROTO="none"
NAME="enp0s3"
UUID="462f4834-4fe7-43a7-84e7-83b2722e94c1"
ONBOOT="yes"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"
After reboot , I use "ip addr show" still not shown the ip address , the ip address is still blank , would advise what is wrong ? thanks