- 从零开始搭建Zabbix监控系统:安装配置全攻略,轻松掌握企业级监控利器
磐基Stack专业服务团队
Zabbixzabbixadb
#作者:stackofumbrella文章目录前提安装及配置开始安装设置mysql编码开始安装查询是否启动成功编译安装zabbix前提selinux关闭#vim/etc/selinux/configSELINUX=disabled#setenforce0关闭防火墙#systemctlstopfirewalldyum安装mysql检查系统是否安装其他版本的MYSQL#yumlistinstalled
- Ubuntu中 json 打包数据的使用
猫猫的小茶馆
嵌入式软件开发ubuntujsonlinux服务器网络mcu
1.JSON的概念和作用为了避免不同平台下的字节对齐、类型大小不统一的问题,json库把数据封装成具有一定格式的字符流数据,进行传输。json格式:把数据与键值一一对应,数据传输双方约定好同一键值,使用接口API根据键值操作json对象(json_object)存储或取得数据。一般使用:数据-->(封装)json对象-->String格式-->...传输。。。-->String格式-->(解析)j
- Linux C多人网络聊天室
HWY_猿
网络编程多人网络聊天室Linux网络聊天室聊天室LinuxC多人网络聊天室
经过好几天的日夜奋斗,总算把这个聊天室给做出来了,虽然说不上多好,但也是这几天从早到晚劳动的成功,所以就写这篇博文来记录一下啦。别的不敢说,确保能用就是了,完整代码在最后哦~当然啦,如果有幸被转发,还请注明来处哈~一、功能这个Linux下C版本的多人网络聊天室具备以下几个基本功能(或者说需求):(一)C/S模式,IPv4的TCP通信;(二)客户端登录需要账号密码,没有账号需要注册;(三)服务器每接
- 练手代码之使用Python实现合并PDF文件
Wcowin
Pythonpythonpdf前端
如果你有合并PDF的需要,你会怎么办我们无所不能的程序员会选择写一个Python代码来实现(谁会这么无聊?是我),如果真的有PDF操作需要,我推荐你使用PDFExpert这个软件哈~话不多说直接上代码:importosimportPyPDF2fromtkinterimportTkfromtkinter.filedialogimportaskopenfilenamesdefcombine_pdfs(
- C++ 对txt文档进行编辑
阿波茨的鹅
C++语法
#includeusingnamespacestd;#includeFILE*stream;//定义一个文件类型的指针变量,以便接下来对文件操作errno_terr;//定义一个errno_t类型的变量,以便监视读取文件操作(open)是否成功(err=0/err=2)intmain(){//利用fopen(之前定义的FEIL类型的变量地址,|文件地址,|r/w)if((err=fopen_s(&
- Ubuntu,centos下源码安装cmake指定版本
你若盛开,清风自来!
ubuntucentoslinux
网址:Indexof/files/v3.23常规安装出错1.先把安装包cmake-3.12.4-Linux-x86_64.tar.gz复制到指定目录2.解压tar-zxvfcmake-3.12.4-Linux-x86_64.tar.gz3.进入解压之后的文件夹cdcmake-3.12.4-Linux-x86_64.tar.gz4.运行下面命令出错bash:./bootstrap:Nosuchfil
- Python实现观察者模式
麦田里走一夜
PYTHONpython观察者模式开发语言
请关注【来玩AI】公众号体验人工智能来玩AI>>>Python实现观察者模式观察者模式python代码实现说明应用场景观察者模式模式是一种常用的设计模式,可以在对象之间建立一对多的依赖关系。Python中实现观察者模式有多种方式,下面给出一种基于类和装饰器的实现方式:python代码实现classObserver:defupdate(self,observable,*args,**kwargs):
- 第十一章:服务器信道管理模块
转调
仿Rabbit消息队列c++消息队列
目录第一节:模块介绍第二节:通信协议第三节:信道模块实现3-1.类型别名定义3-2.Channel类3-3.ChannelManager类下期预告:该模块在mqserver目录下实现。第一节:模块介绍服务器信道的作用是处理来自于客户端的各种请求,然后返回一个响应,那么客户端都有哪些请求呢?比如:交换机的声明与创建、队列的声明与创建、绑定与解绑等。请求的种类如此多,信道要怎么识别这些请求,执行对应的
- SQL注入原理即sqli-labs搭建,sql注入简单实战
Cwillchris
网络安全全栈课程渗透测试web安全安全sql
一、SQL注入概述1、SQL注入原理用户登录的基本SQL语句:select*fromuserswhereusername='用户输入的用户名'andpassword='用户输入的密码'用户输入的内容是可控的,例如我们可以在用户名中输入'or1=1--空格select*fromuserswhereusername=''or1=1--空格'andpassword='用户输入的密码'此时我们输入的第一个
- 小程序中头像昵称填写
葱头的故事
小程序小程序
官方文档参考小程序用户头像昵称获取规则调整公告新的小程序版本不能通过wx.getUserProfile和wx.getUserInfo获取用户信息注意昵称填写,同时绑定了input和change事件(input是用户输入时触发,change是直接选择微信昵称时触发)getAvater(event){console.log(9,event);console.log('event',event.deta
- 【AI+智造】基于阿里云Ubuntu24.04系统,使用Ollama部署开源DeepSeek模型并集成到企业微信
邹工转型手札
Duodoo开源Odoo18开源企业信息化制造人工智能数据分析
作者:Odoo技术开发/资深信息化负责人日期:2025年2月28日本方案结合了本地部署与云服务调用的技术路径,涵盖部署步骤、集成逻辑及关键问题点,适用于企业级AI应用场景。一、方案背景与架构设计1.技术选型背景DeepSeek模型:作为开源大模型,支持文本生成、智能问答等场景,适合企业知识库与自动化服务。Ollama工具:轻量化本地模型部署框架,支持一键拉取模型镜像并启动API服务。企业微信集成:
- Nginx 请求转发配置指南
web13093320398
面试学习路线阿里巴巴nginxlinux运维
Nginx请求转发配置指南1.简介Nginx是一款高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。本文档将介绍如何使用Nginx配置请求转发,并解释一些常用的配置参数。2.Nginx安装在配置之前,确保你的系统已经安装了Nginx。如果未安装,可以使用以下命令进行安装:在CentOS/RHEL上:sudoyuminstallnginx-y在Ubuntu/Debia
- Unity(游戏)中五种数据存储的方法
别皱眉inging
unity3d游戏存储存储方式
Unity(游戏)中五种数据存储的方法一、PlayerPrefsunity3d提供了一个用于本地持久化保存与读取的类-------PlayerPrefs.工作原理很简单,以键值对的形式将数据保存在文件中,然后程序可以根据这个名称取出上次保存的数值(注:PlayerPrefs运用起来很方便,随时都可以存取与读取)。Playerprefs类支持3中数据类型的保存和读取,分别是浮点型、整型和字符串型:P
- 非常实用的linux操作系统一键巡检脚本
我科绝伦(Huanhuan Zhou)
linuxlinuxchrome运维
[root@localhost~]#chmod+xsystem_check.sh[root@localhost~]#./system_check.sh[root@localhost~]#cat/root/check_log/check-20250227.txt脚本内容:#!/bin/bash#@Author:zhh#beseemCentOS6.XCentOS7.X#date:20250224#检查
- 【linux自动化实践】linux shell 脚本 替换某文本
忙碌的菠萝
linux自动化实践linux自动化运维
在Linuxshell脚本中,可以使用sed命令来替换文本。以下是一个基本的例子,它将在文件example.txt中查找文本old_text并将其替换为new_textsed-i's/old_text/new_text/g'example.txt解释:sed:是streameditor的缩写,用于处理文本数据。-i:表示直接修改文件内容。s:表示替换操作。old_text:要被替换的文本。new_
- Python连接SQL SEVER数据库全流程
m0_74824865
面试学习路线阿里巴巴数据库pythonsql
背景介绍在数据分析领域,经常需要从数据库中获取数据进行分析和处理。而SQLServer是一种常用的关系型数据库管理系统,因此学习如何使用Python连接SQLServer数据库并获取数据是非常有用的。以下是Python使用pymssql连接SQLServer数据库的全流程:安装pymssql库本地账号设置脚本连接数据导入函数实现一、安装pymssqlpymssql是Python连接SQLServe
- Qt5.6在Linux中无法切换中文输入法问题解决
糯米藕片
经验分享qtlinux开发语言
注意Qt5.6.1要编译1.0.6版本源码chmod777赋权复制两个地方so重启QtCreatorsudocplibfcitxplatforminputcontextplugin.so/home/shen/Qt5.6.1/Tools/QtCreator/lib/Qt/plugins/platforminputcontextssudocplibfcitxplatforminputcontextpl
- Spring Cloud Alibaba Spring Cloud Spring Boot 版本对应关系
马丁半只瞄
javaspringspringbootspringcloud
版本不对应可能有以下报错:Failedtobindpropertiesundermybatis-plus.configuration.result-maps[0]NoClassDefFoundError:reactor/netty/http/server/WebsocketServerSpec$Builderreactor.netty.resources.ConnectionProvider.el
- Llama.cpp 服务器安装指南(使用 Docker,GPU 专用)
田猿笔记
AI高级应用llama服务器dockerllama.cpp
前置条件在开始之前,请确保你的系统满足以下要求:操作系统:Ubuntu20.04/22.04(或支持Docker的Linux系统)。硬件:NVIDIAGPU(例如RTX4090)。内存:16GB+系统内存,GPU需12GB+显存(RTX4090有24GB)。存储:15GB+可用空间(用于源码、镜像和模型文件)。网络:需要互联网连接以下载源码和依赖。软件:已安装并运行Docker。已安装NVIDIA
- javaweb文件上传:@MultipartConfig注解与Apache Commons FileUpload对比
yuren_xia
后端技术apachejavatomcat
在JavaWeb应用中处理文件上传时,可以选择使用@MultipartConfig注解或第三方库如ApacheCommonsFileUpload(通常简称为fileupload)。以下是两者的比较和建议:使用@MultipartConfig注解简介:@MultipartConfig是JavaServlet规范中用于处理multipart/form-data请求(通常是文件上传)的注解。它简化了在S
- redis集群迅速搭建(个人学习和测试用)
yinhezhanshen
redis学习java
笔者使用ubuntu操作系统下载redis地址:Indexof/releases/,选择最新的版本下载。解压后进入目录,直接make就可以编译。编译成功后在src目录下会生成redis-server和redis-cli可执行文件。进入redis目录下的utils/create-cluster目录,执行./create-clusterstart,快速启动6个实例zy@zy-VirtualBox:~/
- 驱动开发系列39 - Linux Graphics 3D 绘制流程(二)- 设置渲染管线
黑不溜秋的
GPU驱动专栏驱动开发
一:概述Intel的Iris驱动是Mesa中的Gallium驱动,主要用于IntelGen8+GPU(Broadwell及更新架构)。它负责与i915内核DRM驱动交互,并通过Vulkan(ANV)、OpenGL(IrisGallium)、或OpenCL(Clover)来提供3D加速。在Iris驱动中,GPUPipeline设置涉及多个部分,包括编译和上传着色器、设置渲染目标、绑定缓冲区、配置固定
- Linux驱动开发: USB驱动开发
DS小龙哥
Linux系统编程与驱动开发linuxUSB驱动嵌入式
一、USB简介1.1什么是USB?USB是连接计算机系统与外部设备的一种串口总线标准,也是一种输入输出接口的技术规范,被广泛地应用于个人电脑和移动设备等信息通讯产品,USB就是简写,中文叫通用串行总线。最早出现在1995年,伴随着奔腾机发展而来。自微软在Windows98中加入对USB接口的支持后,USB接口才推广开来,USB设备也日渐增多,如数码相机、摄像头、扫描仪、游戏杆、打印机、键盘、鼠标等
- 关闭linux系统端口占用,关闭linux系统端口的两种方法
爱吃面的喵
关闭linux系统端口占用
1、通过杀掉进程的方法来关闭端口每个端口都有一个守护进程,kill掉这个守护进程就可以了每个端口都是一个进程占用着,第一步、用下面命令netstat-anp|grep端口找出占用这个端口的进程,第二步、用下面命令kill-9PID杀掉就行了2、通过开启关闭服务的方法来开启/关闭端口因为每个端口都有对应的服务,因此要关闭端口只要关闭相应的服务就可以了。linux中开机自动启动的服务一般都存放在两个地
- Linux 查看端口占用命令
酒酿小圆子~
linux运维服务器
文章目录1、lsof-i:端口号2、netstat命令2.1netstat-tunlp命令2.2netstat-anp命令1、lsof-i:端口号用于查看某一端口的占用情况,比如查看5000端口使用情况:sudolsof-i:5000注意:这里最好使用sudo开启管理员权限,未开启管理员权限时,可能会检测不到相关进程。(并非所有进程都能被检测到,所有非本用户的进程信息将不会显示,如果想看到所有信息
- Linux Device Driver 3rd 上
xiaozi63
linux内核驱动程序
第一章设备驱动程序的简介处于上层应用与底层硬件设备的软件层区分机制和策略是Linux最好的思想之一,机制指的是需要提供什么功能,策略指的是如何使用这个功能!通常不同的环境需要不同的方式来使用硬件,则驱动应当尽可能地不实现策略.驱动程序设计需要考虑一下几个方面的因素:提供给用户尽量多的选项编写驱动程序所占用的时间,驱动程序的操作耗时需要尽量缩减.尽量保持程序简单内核概览:进程管理:负责创建和销毁进程
- android:onClick 无法成功映射到对应Activity问题的解决过程记录
陈金鑫
android
在学习android静态绑定按钮点击事件时出现报错:08-1300:30:32.510:E/AndroidRuntime(2039):java.lang.IllegalStateException:Couldnotexecutemethodoftheactivity08-1300:30:32.510:E/AndroidRuntime(2039): atandroid.view.View$1.o
- 最通用的跨平台引擎:ShiVa 3D引擎
pizi0475
图形图像其它文章图形引擎游戏引擎引擎跨平台脚本服务器sslsoap
ShiVa3D引擎是最通用的跨平台引擎,可以在Web浏览器运行并且也支持Windows,Mac,Linux,Wii,iPhone,iPad,Android,WebOS和AirplaySDK。该引擎支持SSL–securized插件扩展,很像PhysX引擎,FMOD声音库,ARToolkit和ScaleformHUD引擎。ClassicGeometry经典的图形处理支持多边形网,其中包括:-静态网格
- Linux系统如何排查端口占用
程序猿000001号
linux运维服务器
如何在Linux系统中排查端口占用在Linux系统中,当您遇到网络服务无法启动或响应异常的情况时,可能是因为某个特定的端口已经被其他进程占用。这时,您需要进行端口占用情况的排查来解决问题。本文将介绍几种常用的命令行工具和方法,帮助您快速定位并解决端口占用的问题。1.使用netstat命令netstat是一个网络统计工具,它可以显示网络连接、路由表、接口统计等信息。要检查端口占用情况,可以使用以下命
- Linux查看端口占用情况的几种方式
liu_caihong
linux服务器网络
Linux查看端口占用情况的几种方式概述测试环境为Centos7.9,本文简单给出了几种检测端口的例子。一、查看本机端口占用1、netstat#安装netstatyum-yinstallnet-tools#检测端口占用netstat-npl|grep"端口"[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-FFUW0j6I-1655191692938)(C:%5CUse
- 312个免费高速HTTP代理IP(能隐藏自己真实IP地址)
yangshangchuan
高速免费superwordHTTP代理
124.88.67.20:843
190.36.223.93:8080
117.147.221.38:8123
122.228.92.103:3128
183.247.211.159:8123
124.88.67.35:81
112.18.51.167:8123
218.28.96.39:3128
49.94.160.198:3128
183.20
- pull解析和json编码
百合不是茶
androidpull解析json
n.json文件:
[{name:java,lan:c++,age:17},{name:android,lan:java,age:8}]
pull.xml文件
<?xml version="1.0" encoding="utf-8"?>
<stu>
<name>java
- [能源与矿产]石油与地球生态系统
comsci
能源
按照苏联的科学界的说法,石油并非是远古的生物残骸的演变产物,而是一种可以由某些特殊地质结构和物理条件生产出来的东西,也就是说,石油是可以自增长的....
那么我们做一个猜想: 石油好像是地球的体液,我们地球具有自动产生石油的某种机制,只要我们不过量开采石油,并保护好
- 类与对象浅谈
沐刃青蛟
java基础
类,字面理解,便是同一种事物的总称,比如人类,是对世界上所有人的一个总称。而对象,便是类的具体化,实例化,是一个具体事物,比如张飞这个人,就是人类的一个对象。但要注意的是:张飞这个人是对象,而不是张飞,张飞只是他这个人的名字,是他的属性而已。而一个类中包含了属性和方法这两兄弟,他们分别用来描述对象的行为和性质(感觉应该是
- 新站开始被收录后,我们应该做什么?
IT独行者
PHPseo
新站开始被收录后,我们应该做什么?
百度终于开始收录自己的网站了,作为站长,你是不是觉得那一刻很有成就感呢,同时,你是不是又很茫然,不知道下一步该做什么了?至少我当初就是这样,在这里和大家一份分享一下新站收录后,我们要做哪些工作。
至于如何让百度快速收录自己的网站,可以参考我之前的帖子《新站让百
- oracle 连接碰到的问题
文强chu
oracle
Unable to find a java Virtual Machine--安装64位版Oracle11gR2后无法启动SQLDeveloper的解决方案
作者:草根IT网 来源:未知 人气:813标签:
导读:安装64位版Oracle11gR2后发现启动SQLDeveloper时弹出配置java.exe的路径,找到Oracle自带java.exe后产生的路径“C:\app\用户名\prod
- Swing中按ctrl键同时移动鼠标拖动组件(类中多借口共享同一数据)
小桔子
java继承swing接口监听
都知道java中类只能单继承,但可以实现多个接口,但我发现实现多个接口之后,多个接口却不能共享同一个数据,应用开发中想实现:当用户按着ctrl键时,可以用鼠标点击拖动组件,比如说文本框。
编写一个监听实现KeyListener,NouseListener,MouseMotionListener三个接口,重写方法。定义一个全局变量boolea
- linux常用的命令
aichenglong
linux常用命令
1 startx切换到图形化界面
2 man命令:查看帮助信息
man 需要查看的命令,man命令提供了大量的帮助信息,一般可以分成4个部分
name:对命令的简单说明
synopsis:命令的使用格式说明
description:命令的详细说明信息
options:命令的各项说明
3 date:显示时间
语法:date [OPTION]... [+FORMAT]
- eclipse内存优化
AILIKES
javaeclipsejvmjdk
一 基本说明 在JVM中,总体上分2块内存区,默认空余堆内存小于 40%时,JVM就会增大堆直到-Xmx的最大限制;空余堆内存大于70%时,JVM会减少堆直到-Xms的最小限制。 1)堆内存(Heap memory):堆是运行时数据区域,所有类实例和数组的内存均从此处分配,是Java代码可及的内存,是留给开发人
- 关键字的使用探讨
百合不是茶
关键字
//关键字的使用探讨/*访问关键词private 只能在本类中访问public 只能在本工程中访问protected 只能在包中和子类中访问默认的 只能在包中访问*//*final 类 方法 变量 final 类 不能被继承 final 方法 不能被子类覆盖,但可以继承 final 变量 只能有一次赋值,赋值后不能改变 final 不能用来修饰构造方法*///this()
- JS中定义对象的几种方式
bijian1013
js
1. 基于已有对象扩充其对象和方法(只适合于临时的生成一个对象):
<html>
<head>
<title>基于已有对象扩充其对象和方法(只适合于临时的生成一个对象)</title>
</head>
<script>
var obj = new Object();
- 表驱动法实例
bijian1013
java表驱动法TDD
获得月的天数是典型的直接访问驱动表方式的实例,下面我们来展示一下:
MonthDaysTest.java
package com.study.test;
import org.junit.Assert;
import org.junit.Test;
import com.study.MonthDays;
public class MonthDaysTest {
@T
- LInux启停重启常用服务器的脚本
bit1129
linux
启动,停止和重启常用服务器的Bash脚本,对于每个服务器,需要根据实际的安装路径做相应的修改
#! /bin/bash
Servers=(Apache2, Nginx, Resin, Tomcat, Couchbase, SVN, ActiveMQ, Mongo);
Ops=(Start, Stop, Restart);
currentDir=$(pwd);
echo
- 【HBase六】REST操作HBase
bit1129
hbase
HBase提供了REST风格的服务方便查看HBase集群的信息,以及执行增删改查操作
1. 启动和停止HBase REST 服务 1.1 启动REST服务
前台启动(默认端口号8080)
[hadoop@hadoop bin]$ ./hbase rest start
后台启动
hbase-daemon.sh start rest
启动时指定
- 大话zabbix 3.0设计假设
ronin47
What’s new in Zabbix 2.0?
去年开始使用Zabbix的时候,是1.8.X的版本,今年Zabbix已经跨入了2.0的时代。看了2.0的release notes,和performance相关的有下面几个:
:: Performance improvements::Trigger related da
- http错误码大全
byalias
http协议javaweb
响应码由三位十进制数字组成,它们出现在由HTTP服务器发送的响应的第一行。
响应码分五种类型,由它们的第一位数字表示:
1)1xx:信息,请求收到,继续处理
2)2xx:成功,行为被成功地接受、理解和采纳
3)3xx:重定向,为了完成请求,必须进一步执行的动作
4)4xx:客户端错误,请求包含语法错误或者请求无法实现
5)5xx:服务器错误,服务器不能实现一种明显无效的请求
- J2EE设计模式-Intercepting Filter
bylijinnan
java设计模式数据结构
Intercepting Filter类似于职责链模式
有两种实现
其中一种是Filter之间没有联系,全部Filter都存放在FilterChain中,由FilterChain来有序或无序地把把所有Filter调用一遍。没有用到链表这种数据结构。示例如下:
package com.ljn.filter.custom;
import java.util.ArrayList;
- 修改jboss端口
chicony
jboss
修改jboss端口
%JBOSS_HOME%\server\{服务实例名}\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml
中找到
<!-- The ports-default bindings are obtained by taking the base bindin
- c++ 用类模版实现数组类
CrazyMizzz
C++
最近c++学到数组类,写了代码将他实现,基本具有vector类的功能
#include<iostream>
#include<string>
#include<cassert>
using namespace std;
template<class T>
class Array
{
public:
//构造函数
- hadoop dfs.datanode.du.reserved 预留空间配置方法
daizj
hadoop预留空间
对于datanode配置预留空间的方法 为:在hdfs-site.xml添加如下配置
<property>
<name>dfs.datanode.du.reserved</name>
<value>10737418240</value>
 
- mysql远程访问的设置
dcj3sjt126com
mysql防火墙
第一步: 激活网络设置 你需要编辑mysql配置文件my.cnf. 通常状况,my.cnf放置于在以下目录: /etc/mysql/my.cnf (Debian linux) /etc/my.cnf (Red Hat Linux/Fedora Linux) /var/db/mysql/my.cnf (FreeBSD) 然后用vi编辑my.cnf,修改内容从以下行: [mysqld] 你所需要: 1
- ios 使用特定的popToViewController返回到相应的Controller
dcj3sjt126com
controller
1、取navigationCtroller中的Controllers
NSArray * ctrlArray = self.navigationController.viewControllers;
2、取出后,执行,
[self.navigationController popToViewController:[ctrlArray objectAtIndex:0] animated:YES
- Linux正则表达式和通配符的区别
eksliang
正则表达式通配符和正则表达式的区别通配符
转载请出自出处:http://eksliang.iteye.com/blog/1976579
首先得明白二者是截然不同的
通配符只能用在shell命令中,用来处理字符串的的匹配。
判断一个命令是否为bash shell(linux 默认的shell)的内置命令
type -t commad
返回结果含义
file 表示为外部命令
alias 表示该
- Ubuntu Mysql Install and CONF
gengzg
Install
http://www.navicat.com.cn/download/navicat-for-mysql
Step1: 下载Navicat ,网址:http://www.navicat.com/en/download/download.html
Step2:进入下载目录,解压压缩包:tar -zxvf navicat11_mysql_en.tar.gz
- 批处理,删除文件bat
huqiji
windowsdos
@echo off
::演示:删除指定路径下指定天数之前(以文件名中包含的日期字符串为准)的文件。
::如果演示结果无误,把del前面的echo去掉,即可实现真正删除。
::本例假设文件名中包含的日期字符串(比如:bak-2009-12-25.log)
rem 指定待删除文件的存放路径
set SrcDir=C:/Test/BatHome
rem 指定天数
set DaysAgo=1
- 跨浏览器兼容的HTML5视频音频播放器
天梯梦
html5
HTML5的video和audio标签是用来在网页中加入视频和音频的标签,在支持html5的浏览器中不需要预先加载Adobe Flash浏览器插件就能轻松快速的播放视频和音频文件。而html5media.js可以在不支持html5的浏览器上使video和audio标签生效。 How to enable <video> and <audio> tags in
- Bundle自定义数据传递
hm4123660
androidSerializable自定义数据传递BundleParcelable
我们都知道Bundle可能过put****()方法添加各种基本类型的数据,Intent也可以通过putExtras(Bundle)将数据添加进去,然后通过startActivity()跳到下一下Activity的时候就把数据也传到下一个Activity了。如传递一个字符串到下一个Activity
把数据放到Intent
- C#:异步编程和线程的使用(.NET 4.5 )
powertoolsteam
.net线程C#异步编程
异步编程和线程处理是并发或并行编程非常重要的功能特征。为了实现异步编程,可使用线程也可以不用。将异步与线程同时讲,将有助于我们更好的理解它们的特征。
本文中涉及关键知识点
1. 异步编程
2. 线程的使用
3. 基于任务的异步模式
4. 并行编程
5. 总结
异步编程
什么是异步操作?异步操作是指某些操作能够独立运行,不依赖主流程或主其他处理流程。通常情况下,C#程序
- spark 查看 job history 日志
Stark_Summer
日志sparkhistoryjob
SPARK_HOME/conf 下:
spark-defaults.conf 增加如下内容
spark.eventLog.enabled true spark.eventLog.dir hdfs://master:8020/var/log/spark spark.eventLog.compress true
spark-env.sh 增加如下内容
export SP
- SSH框架搭建
wangxiukai2015eye
springHibernatestruts
MyEclipse搭建SSH框架 Struts Spring Hibernate
1、new一个web project。
2、右键项目,为项目添加Struts支持。
选择Struts2 Core Libraries -<MyEclipes-Library>
点击Finish。src目录下多了struts
Comments
Thank you for this good
Thank you for this good tutorial.
But the configuring of Runlevels is done with:
update-rc.d vncserver defaults
Good catch! I've updated the
Good catch! I've updated the article.
nice
only want to say well done article
Finally!
Don't know why it was so hard to find *tight* vnc server + ubuntu + start before logging in... so many permutations of useless info before I came here :)
"Command not found"?
I'm trying to run the script and I can't get it to work properly. I've been running it and all I get is "sudo: /etc/init.d/vncserver: command not found"
type sudo nano
type sudo nano /etc/init.d/vncserver
Set executable!
I figured it out. You should amend your script to set the execute bit sudo chmod +c /etc/init.d/vnccserver
Updated the article
Thanks for the feedback - I've updated the article to note setting the execute bit.
One step closer
It's working now, however on reboot It does not launch the commands in ~/.vnc/xstartup, the curious thing is that if I run it manually, it works fine.
Perhaps you need to set the
Perhaps you need to set the execute bit on your xstartup file as well? Though it should be created automatically when you first run the server.
Can't log in after connection.
I completed the installation procedure and everything seems to be OK. But after I made connection, using a tightvnc client, I get a blank screen. At that moment there is no user logged in at the host yet. When I start the vncserver at the host after there is logged in a user there is no problem. Can anybody tell me what is wrong.
xstartup?
It sounds like it might be caused by the contents of your xstartup file. When the VNC server starts, there should be whatever processes you asked the VNC server to start. Try running:
ps auxww | grep
to see if processes are running as expected or not.
great write-up, I tried to do
great write-up, I tried to do this in 8.04 LTS and got the same issue of just a blank grey screen, no login
myusername@ubuntu:~$ ps auxww | grep myusername
myusername 6011 0.0 0.1 7428 5168 ? S 09:59 0:00 Xtightvnc :1 -de/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 120000 -rfbauth /home/myusername1R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/foni/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
myusername 6032 0.2 0.6 79828 21324 ? S 09:59 0:00 x-terminal-emulmy-vnc-server Desktop
myusername 6033 0.1 0.3 20120 11544 ? S 09:59 0:00 x-window-manage
myusername 6130 0.1 0.1 6984 4064 ? S 09:59 0:00 /usr/lib/libgco
myusername 6528 0.0 0.0 3008 600 ? S 09:59 0:00 dbus-launch --ab427 --binary-syntax --close-stderr
myusername 6529 0.0 0.0 2568 868 ? Ss 09:59 0:00 /usr/bin/dbus-dress 7 --session
myusername 6534 0.0 0.0 2796 752 ? S 09:59 0:00 gnome-pty-helpe
myusername 6535 0.0 0.1 5708 3120 pts/0 Ss+ 09:59 0:00 /bin/bash
root 6552 0.0 0.1 11384 3840 ? Ss 10:01 0:00 sshd: myusername [p
myusername 6554 0.0 0.0 11384 1872 ? R 10:01 0:00 sshd: myusername@pt
myusername 6555 0.0 0.1 5720 3152 pts/1 Ss 10:01 0:00 -bash
myusername 6578 0.0 0.0 2644 1012 pts/1 R+ 10:04 0:00 ps auxww
myusername 6579 0.0 0.0 3008 776 pts/1 S+ 10:04 0:00 grep myusername
anything look strange?
Definitely sounds like your
Definitely sounds like your xstartup is broken somehow. There should be processes from whatever desktop environment or programs you're trying to run. You can start with simple steps by running just
/usr/bin/xterm
, or try installing icewm and just use the xstartup file I have in the article.Fixed issue with gray screen at startup
I too was having an issue where the VNC server was getting started, but I saw only a gray screen when I connected to it from a remote client. After some investigation, I realized the the VNC server was being started too early in the boot process, perhaps before the X windows subsystem had been completely initialized. I was able to solve this problem by removing the vncserver script from the startup sequence using:
sudo update-rc.d -f vncserver remove
and then adding it back using:
sudo update-rc.d vncserver defaults 99
The value of "99" indicates that this script should be run later in the startup process. Other values may work for you, but the value that was being used in my case by default was 20, and that caused it to be run too early.
Andrew - You may want to add a note about this in the original writeup. And thanks, by the way, for writing this up - it got me 95% of the way there.
This is likely related to the
This is likely related to the fact that in the time since I wrote the article for Ubuntu 8.04, there's a lot of work that's gone into making startup tasks run in parallel. Thanks for the tip, I've updated the article.
Thank you!
Thank you for this! I've been looking for a seemless way to start X and VNC all in one. Maybe you should add a part about changing the username from "mythtv" to something else, but I guess everyone can figure it out. Tested working 100% as the guide said it on Ubuntu 8.10 x86_64.
Added note about changing the user
Glad to hear that the steps still work as expected on 8.10, as I haven't upgraded from 8.04 yet. I've updated the article with a note about changing the USER variable to something valid.
/etc/init.d/vncserver "No such file"
It's very strange. Followed guide, but got stuck here:
sudo cat /etc/init.d/vncserver
works. However:sudo /etc/init.d/vncserver start
results in :any thoughts?
Finally Working! Thank god (and andrew)
re-did it from scratch. this by typing in on the terminal (before i did cut&paste from windows using vnc). I think this has something to do with the involvement of Windows somewhere in the process.
Anyway - after so 3 days of frustration it finally works!
Thank you!
Glad to hear you got it
Glad to hear you got it working. My guess is that Windows line endings got placed in the file somehow. I've had better success with such things by using SSH + putty, if you're stuck on Windows.
thanks
have been trying (unsuccessfully) to get this to work exactly as you did for a long time — thanks for the vncserver init.d script
awesome (;
Everytime I use the script, I got a prompt asking for password
if I input the password, the script runs well.
But when this script automatically run on boot, I do not get a chance for inputting password.
So the vncserver will not get started.
Can you tell me how can I prevent the password being asked when using the script?
Thank you in advance.
Do you have a password set
Do you have a password set for the user? You can change it with vncpasswd, and check that it exists by looking in ~/.vnc/passwd. vncserver should only ask for a password if one doesn't exist.
Or, is your startup script running the vnc server as the same user that you set up? Perhaps it's trying to run as root or some other user.
xstartup not being launched
I too am having a problem with xstartup not being launched. Not sure what to do.
Has Anyone Solved the xstartup issue
Whats the problem with the xstartup file not being read/executed on startup? When I start vncserver manually it works just fine, but when I log in with just the startup scripts the server is started, but gnome isn't.
If you DO get an X-server
If you DO get an X-server (gray with the old style mous-pointer) you might want to adding the following (for gnome) to the top of your xstartup file:
unset SESSION_MANAGER
exec sh /etc/X11/xinit/xinitrc
However, I (as well as others) am experiencing theme-switching. The theme-chooser will very shortly change the theme, but when I stop using the chooser itself it refers back to the default icon/theme appearance. Anyone got an idea/link?
How could I modify this
How could I modify this script for five users each running there own vnc window?
Is this possible?
For five users, it's probably
For five users, it's probably easiest just to copy the init.d script for each user, and modify the USER variable. Or, for a little more robustness, turn that variable into a list of users sourced from a configuration file, and loop over each user for the start and stop actions.
So copy the init.d script
So copy the init.d script just change the User,display and script name for each user.
I cannot get this to work on
I cannot get this to work on ubuntu 8.10 it works fine on 9.04.
First of all the 8.10 asked for the required-stop section from the init info so I created that section.
# Required-Stop: networking
I can start manually by "sudo /etc/init.d/vncserver start" but will not start automatically from boot.
Can anyone help?
That's rather strange. I'm
That's rather strange. I'm currently running 9.04, and I'm pretty sure that 8.10 loaded the session fine (though I only had 8.10 installed for a few hours). You're sure you ran
sudo update-rc.d vncserver defaults
? There should be symlinks in the following locations:/etc/rc0.d/K20vncserver
/etc/rc1.d/K20vncserver
/etc/rc2.d/S20vncserver
/etc/rc3.d/S20vncserver
/etc/rc4.d/S20vncserver
/etc/rc5.d/S20vncserver
/etc/rc6.d/K20vncserver
Yes on 8.10 I only have
Yes on 8.10 I only have symlinks in these locations
/etc/rc0.d/K20vncserver1 -> ../init.d/vncserver
/etc/rc1.d/K20vncserver1 -> ../init.d/vncserver
/etc/rc6.d/K20vncserver1 -> ../init.d/vncserver
/etc/rcS.d/S20vncserver1 -> ../init.d/vncserver
Well that's the problem.
Well that's the problem. Either create the symlinks manually, or re-run the update-rc.d command to create them.
/bin/sh: Illegal option -
Thanks for this write-up. I have followed all the steps but cannot get "sudo /etc/init.d/vncserver start" to work. It returns: "/bin/sh: Illegal option -". I am running Ubuntu 9.10. I have created the script twice but it does not solve the problem. Even if I reduce the script to e.g. only the first 5 lines, it returns the same error.
Manually (via command "/usr/bin/vncserver -name my-vnc-server -depth 24 -geometry 1280x1024 :1") I get it to work without problems and can connect. Any idea?
Thanks.
I wonder if 9.10's /bin/sh
I wonder if 9.10's /bin/sh has changed; perhaps it doesn't like the
-e
parameter. Try removing it, or changing/bin/sh
to/bin/bash
or/bin/dash
?I have tried the
I have tried the following:
1) Removing the -e parameter and "sudo /etc/init.d/vncserver start" returns: "/bin/sh: Can't open".
2) Changing to "/bin/bash -e" returns "/bin/bash: Illegal option -"
3) Changing to "/bin/bash" returns ": file or folder does not exist"
4) Same for "/etc/dash -e" and "/etc/dash"
The only thing I can think of is that directory "/usr/X11R6/bin/" does not exist on my machine, nor does folder "X11R6" (in another location). I am still open for other ideas ;-)
Same Problem
I am having the same problem it sounds like. I am running 10.04 and this is what I get when I run the vncserver start command:
sudo /etc/init.d/vncserver start
* Starting vncserver for user 'shon' on localhost:1...
bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
Any suggestions?
Does the file have Windows
Does the file have Windows line endings instead of Unix line endings? From those errors it seems like the script file is corrupted somehow.
Thanks!
I was upset that it was so hard to run a headless machine with Ubuntu 9.10, but this procedure worked great for me!
Works! But...
This works perfectly, except that once Im into the desktop, it seems to think I have a German or french keyboard, instead of a british. any way to solve? under keybord, it says i have a british one, but it's not typing as one
wrong keyboard characters too...
I'v got the same problem like Dave...
This sounds like the bug you
This sounds like the bug you are running into:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476727
https://bugs.launchpad.net/ubuntu/+source/vino/+bug/112955/comments/55
http://dertompson.com/2010/02/09/tightvnc-messes-up-keyboard-layout-afte...
How do I connect to display :0
Excellent article. I did some small modification for my user name and screen resolution and everything is still working. I have one issue. how do I VNC into display "0" instead of "1"? The reason is to access programs which are already running on display "0". Display "0" has already been assigned to my session that I logged in on the server.
If I leave Thunderbird mail running on the server on display "0", I cannot see it on display "1" when I am accessing the server from remote desktop. I usually leave some programs running and just lock the screen.
Either use hostname:1, where
Either use hostname:1, where 1 is the display number, or hostname:5901, where 5901 is the port. By default, :1 automatically maps to 5901, and increments up.
Where to use hostname:1 ? on
Where to use hostname:1 ?
on client or on server as an option while starting vncserver hostname:1
That's the syntax for
That's the syntax for connecting from a client. For example, when I want to connect from TightVNC to VNC running on the server blizzard on display 1, I would put
blizzard:1
in the hostname field.No /etc/init.d/vncserver file or directory...
This looks exactly like what I am looking for. I need to run a headless machine that I can setup 2-3 remote users to login with their own accounts. So I need to start VNC on a restart and not have to log in as each one and start the service manually.
I am trying this but when I run sudo cat> /etc/init.d/vncserver I get the error "cat: /etc/init.d/vncserver: No such file or directory"
Any ideas on what this could be? I am running Ubuntu 10.04.
Also is there a way to modify this to allow different VNC servers to run for different users on different ports?
Thanks for your input!
You should be able to modify
You should be able to modify the script easily, either by having one script for each user, or adding in some additional code to handle your case with a few loops.
When you do
sudo > /path/to/file
, only the command, and not the shell redirection, is run as root. Try doingsudo -i
and then the cat, or just dosudo vim
and paste in the code.Edit: Which makes me wonder why it worked when I first wrote the article! I've updated the article to use a functional method.
Just what I needed
Thanks a lot for this init script! It's just what I needed for my dedicated OpenVZ torrenting container. You've allowed me to put off learning more about bash scripting a little longer.
Tightvnc Server crash
Hi!
I installed VNC as in this tutorial described! Thank you very much it works great!
As desktop environment I installed the package "gnome-core". It works fine until a certain moment when the connection is used over serveral days (also using KDE programs). Then suddenly the server crashes and I have to delete some temporary files from /tmp: ".X101-lock" and ".X11-unix". then the server has to be restarted. Is this a known problem ? Has anyone got an idea how to fix this? Does the vnc process have too little memory assigned?
Thank you very much for any help!
Accidently gave vnc user root priveleges
Fresh install of Ubuntu 10.04 - first thing I did was install tightvncserver as above (great piece, thank you).
Logging in with TightVNC I was surprised to see the user was "root". Scared the crap out of me.
Best guess is the first time I ran the script (that creates the .vnc directory and password file) I must have typed "sudo".
Reasoning: ownership of ~/.vnc and ~/.Xauthority was root:root.
Fixed it by changing the permissions of ~/.vnc and ~/.vnc/passwd, deleting the .Xauthority files, deleting the ~/.vnc/server:1.log and server:1.pid files; stopped the service, then reran the startup script.
Still confused on the difference between running "/etc/init.d/vncserver start" and simply "vncserver".
Thank you.
Thanks
Worked like a charm on Lucid Lynx (Ubuntu 10.04)
Thanks!
Everything mentioned here
Everything mentioned here also works on Ubuntu 10.04.
Knowing little about bash scripting I got my set up with multiple VNC servers for multiple users working by using
the last script on the page here .
with just one small change. Changed /bin/sh to /bin/bash. This is because in ubuntu the default shell is not bash
thus requiring you to be expllicit.
Edit: Broken link fixed.
Thank You
Worked like a charm. Thank you very much it works great!
Black Screen after reboot for VNC connection
I have set this up and after rebooting I try to connection via VNC and end up with a black screen... :|
Any thoughts?
My guess would be that the
My guess would be that the VNC session is started, but no programs are actually running. If you know the display number (often :10) you can try manually running a program and it should show up in that session:
$ export DISPLAY=:10
$ xterm
Also consider checking with
ps auxww
to see if your expected programs are running.Don't bother
I wanted an easy solution to remote into my ubuntu 10.04 box on the lan before any login.
Well, if you want to do this and not have to think about it do the following:
Step 1). Go to the following site depending on your bit version of ubuntu:
For the server (computer you want to connect to) you need client, node, and server installed but for the client you only need the client.
For 32 Bit: http://www.nomachine.com/download-package.php?Prod_Id=2249
For 64 Bit: http://www.nomachine.com/download-package.php?Prod_Id=2247
So for the server install the client, then the node, and then server deb; on ubuntu this should be just a download and it will take it from there.
Step 2). Test locally via the menu [Applications][Other][NX Client]
Provide any session name, your user name, and pasword - I believe you can also connect to an existing session (have not tried this yet) , Note: you may get a prompt but it will ask if you wish to connect anyway and say yet - this is just a test.
Step 3). Close everything up and reboot and go to another computer on the LAN or with access to the IP.
Step 4). Install the NX client from the appropriate links above.
Step 5). Start the client using the same steps above and enter the same information but change the IP from 127.0.0.1 to what ever IP you have.
For me this is all I did and I have 10.04 on both. It works no problem.
Thanks NX!
Long live Ubuntu!.
X-Authorisation File
I have setup VNC Server as per the instructions above. I have not been able to run the script file at startup and I am using cron to start/stop. The VNC client is working now. However a number of admin tasks do not work as the "X-Authorisation" file cannot be found. Can this path be added to any of the setup files or is there a simple solution?
Crashing
https://bugs.launchpad.net/ubuntu/+bug/344264
Xtightvnc version 1.3.9 will crash when handling some 64bit values. 1.3.9 is the version in the Ubuntu repositories as of 1/14/2010.
This is supposedly fixed in 1.3.10, however installing that requires downloading/compiling source.
Unable to get it started
jdube@Falken:/usr/bin$ sudo /etc/init.d/vncserver start
* Starting vncserver for user 'jdube' on localhost:1...
Couldn't start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xtightvnc process.
Unrecognized option: --
use: X [:] [option]
suggestions?
Good grief!
This torturous, scatter-shot configuration drama - not uncommon, it seems - is not a recommendation.
Too right!
Let's see… in OS X all I have to do is select the server I want from the Shared area of the Finder window (for local-network systems), click the 'Share Screen' button and enter my login credentials. Works first time, every time in my experience.
This kind of arcane masochism is why I left Linux as a day-to-day desktop after 10+ years of use and evangelism. If your time and sanity are worth anything at all to you, you start looking for ways to make the tools you use to do your work get out of the way as much as possible so you can accomplish the mission you set out to. Digging coal to fire a furnace on which you forge blades with which to shave your yak is the historically pandemic Linux experience, and that's why proportionally fewer people are using it as a desktop system now than 5 years ago, and fewer still will be in 5 years' time unless Ubuntu and friends get out of their navels and start innovating again. When anyone asks me about putting a Linux desktop on an existing PC, I recommend openSUSE, Fedora and Mint. It's been two years since anybody asked me about Ubuntu… and getting people off Windows was my bread-and-butter business until very recently.
Get Grey screen with x only
I followed the article on Ubunto 10.04 LTS. Went fine but when I connect using RealVNC viewer to my device I get a grey screen with an x that moves with the mouse. Anu ideas what causes this?
# Default-Start: S ? (S as in Sam?)
Shouldn't it be 5 as in, well, five?
I looked into this, and while
I looked into this, and while "S" isn't really wrong, it's not the best either. "S" means to run the script any time before switching run levels. What we really want is for it to run after base services have been started. I've changed the script to default start at levels 3 4 5, which should work fine. Thanks!
Deserves an MVP: Most Valuable Post!
Even though your original post is nearly three years old, it's still the clearest - and most successful - description of how to configure a vncserver anywhere on the net. And the various problem descriptions, along with the responses and advice on how to correct, are still enormously useful.
Of course, I might just feel this way because I just spent the whole bleeding day trying to get TightVNC on Ubuntu and Windows to cooperate with one another. It was this post that got me through it!!
Thanks!!
running tightvnc server on display:0
hello all i am trying to run the tightvnc or real vnc on display/ terminal:0 can anybody tell me how to run
by default is is running on display:1 ever passing the value display:0
thanks in advance
If you're just wanting to run
If you're just wanting to run it on port 5900, you can change the DISPLAY variable to 0. However, if you want to attach to an existing X11 server (instead of spawning a separate desktop), you can use the built-in Gnome VNC server (vino-server) or the highly-configurable and quite excellent x11vnc.
I needed to replace
I needed to replace
icewm-session &
with
startxfce4
to get XFCE4 running under Ubuntu 10.04
Great tutorial - thanks
Thanks
Works like a charm on Ubuntu server 11.10
Here is an update for this
Here is an update for this article that helped me out on Ubuntu 11.04: http://zatansuibi.blogspot.com/2011/06/vnc-set-up-in-ubuntu.html
Andrew, you're a god! I spent
Andrew, you're a god! I spent over a day wasting time reading and reading and reading, and experimenting. Just like the previous Anonymous said, so many permutations of useless info...then this. Thank you, I can finally put my server online and get some sleep! My fiancee and child owe you a thanks...
Still Works
Used this guide to setup automatic run for 2 users on Maverick. I didn't need to fix anything. I simple copy and pasted from the guide to an ssh session on a remote desktop, fixed the user name & screen number. Saved and fixed the permissions. It started without issue, and installed for run at boot without complaint.
Fantastic guilde and still very usable.
Really nice, Thanks for this
Really nice, Thanks for this
Start a VNC Server on Ubuntu on Boot
I was getting an error after doing
sudo update-rc.d vncserver defaults
So I changed /etc/init.d/vncserver to as the error was suggesting
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
I was not able to start it without rebooting with
sudo /etc/init.d/vncserver start
However I decided to just reboot and its working just fine.
Thanks for the information.
Clipboard from client not working
The solution is great! I use ubuntu 11.10 and finally don't need to login locally to X everytime I boot my server to enable vnc. I don't know how come the developers don't allow users to at least choose to run vnc server on boot and not after logging in. For headless servers it is so normal. And Microsoft remote desktop does just that without complaining... This is so lame...
Anyway, thanks for the article. I just bumped into one problem. I noticed that by default my clipboard (windows 7) is not shared with the server. I googled a site advising to use autocutsel
http://thomas.patrickdepinguin.com/knowledgebase/tight-vnc
However, the recommended command line
autocutsel -s PRIMARY -fork
did work only one-way, i.e. from server to client.
When I changed the -s parameter to
autocutsel -s CLIPBOARD -fork
it worked perfectly both ways!
Was getting the help screen
Was getting the help screen until changed su to echo to see what was getting run.
Self inflicted stupidity, but need to escape quote the name if you have spaces in $NAME:
OPTIONS="-name\"${NAME}\" -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
Similar advice for RedHat and Suse
Andrew,
Thanks for these useful instructions which seem to work find for Debian/Ubuntu, but they need a little bit of tweaking to work with RedHar or Ubuntu (see my blog post http://www.brianodonovan.ie/2011/11/automatically-starting-vnc-server-at... for details)
Brian
Thanks a lot
I do not know how many hours I saved following your instructions. You wrote really a great post.
Thanks again.
Useful!
Thanks, this helped get me going me when vino started crashing in Ubuntu 11.10
One thing - there is a typo
sudo -i && cat > /etc/init.d/vncserve && exit
should be
sudo -i && cat > /etc/init.d/vncserver && exit
Thanks for catching that -
Thanks for catching that - impressive on a 3 and a half year old article!
Great, but ...
Thank you, I'm up and running on Ubuntu 11.10 32-bit.
Two problems - first is this bug where the letter 'd' closes all open windows -https://bugs.launchpad.net/ubuntu/+source/vnc4/+bug/658723, but you can fix this by going into System Settings --> Keyboard --> Shortcuts --> Hide all normal windows*
Change this to SHIFT-ALT-D, or whatever.
Second problem still unsolved is that the icons in Unity are not displaying properly, some do, some don't. For example if I open up 'Network Connections' my wired LAN does appear. Another example is the Terminal icon on the Unity bar - I can click on it but it is just an empty black icon.
Anyone know how to fix this?
Cheers
:)
Excellent Guide, it took several tries - once I removed the port from TightVNC it worked after rebooting.
Now I can use my third monitor again for development or VNC depending on my task - thanks :)
Awesome
Worked great! Thank you.
When I run vncserver I get an
When I run vncserver I get an error that says:
vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
Do you know how to fix this?
Don't bother
Wasted hours on this, doesn't work.
yep. doesn't work.
yep. doesn't work.
Ubuntu 11.10 - gave up after 2 weeks.
I hope this might be of help.
My solution:
1 - Go to the desktop sharing and allow it to sharing and put a good password.
(click off to allow permissions)
2 - Go to the Screen and set it to lock after 30 seconds.
3 - Go to users and allow an automatic login.
The vino server starts and you should be able to attach to it. You can use ssh to create a tunnel for VNC if you need to secure it (I used PUTTY and that worked very well). You can also enable the firewall and just allow traffic from a specific address. This solution has worked for me in over 20 Ubuntu boxes.
Get error starting vnc server
I followed all the direction till I got to the command on line 6. When I ran that it did not like the NAME=”vicbitter” so I changed it to NAME=”giles” so I tried NAME=”giles@vicbitter” each time I got the following error.
"/etc/init.d/vncserver: 30: ”giles@vicbitter”: not found" . The vncserver that started was a local one at Starting applications specified in /home/giles/.vnc/xstartup
Log file is /home/giles/.vnc/vicbitter:1.log
Any help appresiated
Get error starting vnc server
Just like to add to the above that the vnc server does not start on reboot either??
Only getting a black screen with X pointer
Hey guys i followed these steps but all i get is a Black screen with a X shaped pointer that can be moved by mouse :/
Any solutions ?
Debian 6.0
Your article is great ! Thank you !
For those who might to try this under Debian 6.0 Squeeze some rework of the script is needed :
change the header to look like this
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
Do not use update-rc.d but insserv
Thank you
Thank you, Thank you, Thank you
Authentication Issues
It all seems to work, but when I try and use Synaptic (as an example) it doesn't load the auth prompt, presumably it's trying with a text prompt (it does when I run synaptic-pkexec from the terminal)
I'm guessing that this is a security feature to prevent su from dropping to whoever, but is there a way around this? or am I doing something wrong?
starting thightvncserver in Raspberry PI Debian zqueeze.
I didn't have to do all those steps exposed in this headlines,
What it did the job for me was:
sudo nano /etc/rc.local
And add this line somewhere in the middle or beginning:
su -c "/usr/bin/tightvncserver -geometry 1280x1024" username
Before I had included other options/parameters in that line and I was getting black icons on the screen, but with only -geometry option did the trick and it work great!
still having a useless grey vnc client !!!!
I tried to follow these instructions in order to configure "Ultravnc viewer" on a wondows vista system (with an intel integrated graphics card with 32bits color/ 1280x800 / 59HTZ) in order to manage an ubuntu 10.04 64bits system (the desktop amd64 bits install from the main ubuntu repository).
went through all the steps but I still have a grey screen on ultravnc viewer which blocks me from using the tool??
tried to install other tools (clients) such as VNC viewer and tightvnc viewer ,but they all end up with a grey interface!!!
I tried different settings " geometry 800x600/1280x1024/1024x768" ,but still stuck with this grey screen!!
Any suggestions please??